Skip to content

Commit ddcd3fd

Browse files
authored
[clang][bytecode][NFC] use both-note in literals test (#154277)
And harmonize the RUN lines.
1 parent e6d9542 commit ddcd3fd

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

clang/test/AST/ByteCode/literals.cpp

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -Wno-vla -fms-extensions -std=c++11 -verify=expected,both %s
2-
// RUN: %clang_cc1 -fexperimental-new-constant-interpreter -Wno-vla -fms-extensions -std=c++20 -verify=expected,both %s
3-
// RUN: %clang_cc1 -std=c++11 -fms-extensions -Wno-vla -verify=ref,both %s
4-
// RUN: %clang_cc1 -std=c++20 -fms-extensions -Wno-vla -verify=ref,both %s
1+
// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++11 -fexperimental-new-constant-interpreter -verify=expected,both %s
2+
// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++20 -fexperimental-new-constant-interpreter -verify=expected,both %s
3+
// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++11 -verify=ref,both %s
4+
// RUN: %clang_cc1 -Wno-vla -fms-extensions -std=c++20 -verify=ref,both %s
55

66
#define INT_MIN (~__INT_MAX__)
77
#define INT_MAX __INT_MAX__
@@ -546,16 +546,14 @@ namespace IncDec {
546546
// expected-note 2{{increment of uninitialized}} \
547547
// expected-note {{read of uninitialized}}
548548
else
549-
a++; // ref-note 2{{increment of uninitialized}} \
550-
// expected-note 2{{increment of uninitialized}}
549+
a++; // both-note 2{{increment of uninitialized}}
551550
} else {
552551
if (Pre)
553552
--a; // ref-note 3{{decrement of uninitialized}} \
554553
// expected-note 2{{decrement of uninitialized}} \
555554
// expected-note {{read of uninitialized}}
556555
else
557-
a--; // ref-note 2{{decrement of uninitialized}} \
558-
// expected-note 2{{decrement of uninitialized}}
556+
a--; // both-note 2{{decrement of uninitialized}}
559557
}
560558
return 1;
561559
}

0 commit comments

Comments
 (0)