Skip to content

Commit b466d5e

Browse files
committed
Add another test case that didn't work before
1 parent 538bc1a commit b466d5e

File tree

1 file changed

+10
-0
lines changed
  • clang/test/AST/Interp

1 file changed

+10
-0
lines changed

clang/test/AST/Interp/c.c

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,3 +57,13 @@ _Static_assert((&a - 100) != 0, ""); // pedantic-ref-warning {{is a GNU extensio
5757
// pedantic-expected-warning {{is a GNU extension}} \
5858
// pedantic-ref-note {{-100 of non-array}} \
5959
// 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}}

0 commit comments

Comments
 (0)