File tree Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Expand file tree Collapse file tree 1 file changed +2
-5
lines changed Original file line number Diff line number Diff line change @@ -14,14 +14,11 @@ _Static_assert(!!1.0, ""); // pedantic-ref-warning {{not an integer constant exp
14
14
// pedantic-expected-warning {{not an integer constant expression}}
15
15
_Static_assert (!!1 , "" );
16
16
17
- int a = (1 == 1 ? 5 : 3 ); // expected-note {{declared here}} \
18
- // pedantic-expected-note {{declared here}}
17
+ int a = (1 == 1 ? 5 : 3 );
19
18
_Static_assert (a == 5 , "" ); // ref-error {{not an integral constant expression}} \
20
19
// pedantic-ref-error {{not an integral constant expression}} \
21
20
// expected-error {{not an integral constant expression}} \
22
- // expected-note {{read of non-const variable}} \
23
- // pedantic-expected-error {{not an integral constant expression}} \
24
- // pedantic-expected-note {{read of non-const variable}}
21
+ // pedantic-expected-error {{not an integral constant expression}}
25
22
26
23
27
24
const int b = 3 ;
You can’t perform that action at this time.
0 commit comments