diff options
author | Timm Baeder <tbaeder@redhat.com> | 2025-08-19 10:02:23 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-08-19 10:02:23 +0200 |
commit | ddcd3fdcfdf07e53ffe4326c98fd40e3d5be3b51 (patch) | |
tree | ac1ba4fa483e8120977fed9fd90656e3660dc00f /clang/test/AST/ByteCode/literals.cpp | |
parent | e6d9542b7768b8b5c1ddffcc5b79879bfee3cdc5 (diff) | |
download | llvm-ddcd3fdcfdf07e53ffe4326c98fd40e3d5be3b51.zip llvm-ddcd3fdcfdf07e53ffe4326c98fd40e3d5be3b51.tar.gz llvm-ddcd3fdcfdf07e53ffe4326c98fd40e3d5be3b51.tar.bz2 |
[clang][bytecode][NFC] use both-note in literals test (#154277)
And harmonize the RUN lines.
Diffstat (limited to 'clang/test/AST/ByteCode/literals.cpp')
-rw-r--r-- | clang/test/AST/ByteCode/literals.cpp | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/clang/test/AST/ByteCode/literals.cpp b/clang/test/AST/ByteCode/literals.cpp index ddf1d2b..f4dcd9f 100644 --- a/clang/test/AST/ByteCode/literals.cpp +++ b/clang/test/AST/ByteCode/literals.cpp @@ -1,7 +1,7 @@ -// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -Wno-vla -fms-extensions -std=c++11 -verify=expected,both %s -// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -Wno-vla -fms-extensions -std=c++20 -verify=expected,both %s -// RUN: %clang_cc1 -std=c++11 -fms-extensions -Wno-vla -verify=ref,both %s -// RUN: %clang_cc1 -std=c++20 -fms-extensions -Wno-vla -verify=ref,both %s +// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++11 -fexperimental-new-constant-interpreter -verify=expected,both %s +// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++20 -fexperimental-new-constant-interpreter -verify=expected,both %s +// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++11 -verify=ref,both %s +// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++20 -verify=ref,both %s #define INT_MIN (~__INT_MAX__) #define INT_MAX __INT_MAX__ @@ -546,16 +546,14 @@ namespace IncDec { // expected-note 2{{increment of uninitialized}} \ // expected-note {{read of uninitialized}} else - a++; // ref-note 2{{increment of uninitialized}} \ - // expected-note 2{{increment of uninitialized}} + a++; // both-note 2{{increment of uninitialized}} } else { if (Pre) --a; // ref-note 3{{decrement of uninitialized}} \ // expected-note 2{{decrement of uninitialized}} \ // expected-note {{read of uninitialized}} else - a--; // ref-note 2{{decrement of uninitialized}} \ - // expected-note 2{{decrement of uninitialized}} + a--; // both-note 2{{decrement of uninitialized}} } return 1; } |