diff options
author | Chris Lattner <sabre@nondot.org> | 2009-04-14 21:16:09 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-04-14 21:16:09 +0000 |
commit | b6645dd9ca7a44e9b5f657e14820d5edcc511ee5 (patch) | |
tree | 348ea8c9982a0242ddaf0fe45cdd0aabbcd9e50c /test/Sema/implicit-int.c | |
parent | 1fc5194039fc01e84af46342bf6e0790f0ebb58c (diff) |
Fix a regression in a previous patch that broke implicit
int in a bitfield. Shantonu found this in a gcc testsuite file.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@69074 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Sema/implicit-int.c')
-rw-r--r-- | test/Sema/implicit-int.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/test/Sema/implicit-int.c b/test/Sema/implicit-int.c index 71a5724a1f..90fe607e12 100644 --- a/test/Sema/implicit-int.c +++ b/test/Sema/implicit-int.c @@ -22,3 +22,11 @@ h19_insline(n) // expected-warning {{parameter 'n' was not declared, defaulting ILPAD(); // expected-warning {{type specifier missing, defaults to 'int'}} } +struct foo { + __extension__ __attribute__((packed)) // expected-warning {{type specifier missing, defaults to 'int'}} + x : 4; +}; + + + + |