diff options
author | Eli Friedman <eli.friedman@gmail.com> | 2008-05-29 11:22:45 +0000 |
---|---|---|
committer | Eli Friedman <eli.friedman@gmail.com> | 2008-05-29 11:22:45 +0000 |
commit | bc5ed6ef52d43b5a3c924421aac3c1f0f829dcc8 (patch) | |
tree | f1b91b8556533d4a662e98966d95d8131e9dd172 /test/CodeGen/const-init.c | |
parent | 08d7802a406ee4a7cc18e8fce0c137b8c410ea7c (diff) |
Add codegen support for a few more kinds of initializer constant
expressions.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@51677 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/const-init.c')
-rw-r--r-- | test/CodeGen/const-init.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/test/CodeGen/const-init.c b/test/CodeGen/const-init.c index e3f110d64e..ccc34cf136 100644 --- a/test/CodeGen/const-init.c +++ b/test/CodeGen/const-init.c @@ -1,4 +1,4 @@ -// RUN: clang -emit-llvm %s +// RUN: clang -emit-llvm %s 2>&1 | not grep warning #include <stdint.h> @@ -11,3 +11,5 @@ intptr_t b = a; int c(); void *d = c; intptr_t e = c; + +int f, *g = __extension__ &f, *h = (1 != 1) ? &f : &f; |