[clang][bytecode][NFC] use both-note in literals test (#154277)

And harmonize the RUN lines.
This commit is contained in:
Timm Baeder 2025-08-19 10:02:23 +02:00 committed by GitHub
parent e6d9542b77
commit ddcd3fdcfd
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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 -Wno-vla -fms-extensions -std=c++11 -fexperimental-new-constant-interpreter -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 -Wno-vla -fms-extensions -std=c++20 -fexperimental-new-constant-interpreter -verify=expected,both %s
// RUN: %clang_cc1 -std=c++11 -fms-extensions -Wno-vla -verify=ref,both %s // RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++11 -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++20 -verify=ref,both %s
#define INT_MIN (~__INT_MAX__) #define INT_MIN (~__INT_MAX__)
#define INT_MAX __INT_MAX__ #define INT_MAX __INT_MAX__
@ -546,16 +546,14 @@ namespace IncDec {
// expected-note 2{{increment of uninitialized}} \ // expected-note 2{{increment of uninitialized}} \
// expected-note {{read of uninitialized}} // expected-note {{read of uninitialized}}
else else
a++; // ref-note 2{{increment of uninitialized}} \ a++; // both-note 2{{increment of uninitialized}}
// expected-note 2{{increment of uninitialized}}
} else { } else {
if (Pre) if (Pre)
--a; // ref-note 3{{decrement of uninitialized}} \ --a; // ref-note 3{{decrement of uninitialized}} \
// expected-note 2{{decrement of uninitialized}} \ // expected-note 2{{decrement of uninitialized}} \
// expected-note {{read of uninitialized}} // expected-note {{read of uninitialized}}
else else
a--; // ref-note 2{{decrement of uninitialized}} \ a--; // both-note 2{{decrement of uninitialized}}
// expected-note 2{{decrement of uninitialized}}
} }
return 1; return 1;
} }