diff options
Diffstat (limited to 'clang/test/Sema/cast-to-union.c')
-rw-r--r-- | clang/test/Sema/cast-to-union.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/clang/test/Sema/cast-to-union.c b/clang/test/Sema/cast-to-union.c index a3683de10ea..6f275e8b505 100644 --- a/clang/test/Sema/cast-to-union.c +++ b/clang/test/Sema/cast-to-union.c @@ -10,7 +10,7 @@ void test(int x) { union u w = (union u)2; // expected-warning {{C99 forbids casts to union type}} union u ww = (union u)1.0; // expected-error{{cast to union type from type 'double' not present in union}} -union u x = 7; // expected-error{{initializing 'union u' from an expression of incompatible type 'int'}} +union u x = 7; // expected-error{{initializing 'union u' with an expression of incompatible type 'int'}} int i; union u zz = (union u)i; // expected-error{{initializer element is not a compile-time constant}} expected-warning {{C99 forbids casts to union type}} |