File tree Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Expand file tree Collapse file tree 1 file changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -57,3 +57,13 @@ _Static_assert((&a - 100) != 0, ""); // pedantic-ref-warning {{is a GNU extensio
57
57
// pedantic-expected-warning {{is a GNU extension}} \
58
58
// pedantic-ref-note {{-100 of non-array}} \
59
59
// pedantic-expected-note {{-100 of non-array}}
60
+ /// extern variable of a composite type.
61
+ /// FIXME: The 'cast from void*' note is missing in the new interpreter.
62
+ extern struct Test50S Test50 ;
63
+ _Static_assert (& Test50 != (void * )0 , "" ); // ref-warning {{always true}} \
64
+ // pedantic-ref-warning {{always true}} \
65
+ // pedantic-ref-warning {{is a GNU extension}} \
66
+ // pedantic-ref-note {{cast from 'void *' is not allowed}} \
67
+ // expected-warning {{always true}} \
68
+ // pedantic-expected-warning {{always true}} \
69
+ // pedantic-expected-warning {{is a GNU extension}}
You can’t perform that action at this time.
0 commit comments