diff options
Diffstat (limited to 'clang/test/Sema/static-init.c')
-rw-r--r-- | clang/test/Sema/static-init.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/clang/test/Sema/static-init.c b/clang/test/Sema/static-init.c index a4035e69df4..b3c8d0f9f18 100644 --- a/clang/test/Sema/static-init.c +++ b/clang/test/Sema/static-init.c @@ -16,4 +16,5 @@ struct foo { }; union bar u[1]; -struct foo x = {(int) u}; // no-error +struct foo x = {(long) u}; // no-error +struct foo y = {(char) u}; // expected-error {{initializer element is not a compile-time constant}} |