diff options
author | Daniel Dunbar <daniel@zuster.org> | 2008-08-05 06:30:41 +0000 |
---|---|---|
committer | Daniel Dunbar <daniel@zuster.org> | 2008-08-05 06:30:41 +0000 |
commit | da8bf14c016231d68bc89344f7d95e575fc4145a (patch) | |
tree | 664229dfa757d5d799c46aeb90b187f16020fc28 /test/CodeGen/const-init.c | |
parent | 4fef81d718ca1b91ce2adef52db91a35f86e9bbd (diff) |
Fix const-init test case
- Use -verify and added expected warnings for EXTWARN change.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@54342 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/const-init.c')
-rw-r--r-- | test/CodeGen/const-init.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test/CodeGen/const-init.c b/test/CodeGen/const-init.c index ccc34cf136..0efab6f903 100644 --- a/test/CodeGen/const-init.c +++ b/test/CodeGen/const-init.c @@ -1,4 +1,4 @@ -// RUN: clang -emit-llvm %s 2>&1 | not grep warning +// RUN: clang -verify -emit-llvm -o %t %s #include <stdint.h> @@ -7,9 +7,9 @@ char a[] = { "asdf" }; // Double-implicit-conversions of array/functions (not legal C, but // clang accepts it for gcc compat). -intptr_t b = a; +intptr_t b = a; // expected-warning {{incompatible pointer to integer conversion}} int c(); void *d = c; -intptr_t e = c; +intptr_t e = c; // expected-warning {{incompatible pointer to integer conversion}} int f, *g = __extension__ &f, *h = (1 != 1) ? &f : &f; |