diff options
author | Neil Booth <neil@daikokuya.co.uk> | 2007-08-29 22:00:19 +0000 |
---|---|---|
committer | Neil Booth <neil@daikokuya.co.uk> | 2007-08-29 22:00:19 +0000 |
commit | b94495155dd551ee81ad0c1865acd9ff1bbd632d (patch) | |
tree | e8f23aa9bc65363a70118b3756c5bf33e7b7e1ba /test/Sema/c89.c | |
parent | 7dba8607e59096014b7139ff20ef00870041d518 (diff) | |
download | clang-b94495155dd551ee81ad0c1865acd9ff1bbd632d.tar.gz |
Ensure we diagnose long long literals in C90 mode.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@41581 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/c89.c')
-rw-r--r-- | test/Sema/c89.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/test/Sema/c89.c b/test/Sema/c89.c index a5855b21d0..2c1adcf959 100644 --- a/test/Sema/c89.c +++ b/test/Sema/c89.c @@ -24,3 +24,8 @@ long long test2; /* expected-warning {{extension}} */ void test3(int i) { int A[i]; /* expected-warning {{variable length array}} */ } + +int test4 = 0LL; /* expected-warning {{long long}} */ + +#if 1LL /* expected-warning {{long long}} */ +#endif |