summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/invalid-struct-init.c
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2009-02-27 18:53:28 +0000
committerChris Lattner <sabre@nondot.org>2009-02-27 18:53:28 +0000
commit7b0ec8a9dfe3f46b4677fcafde901c717021e56c (patch)
treeb89b7e8aba9a52bbb70b945226098db342df37b5 /clang/test/Sema/invalid-struct-init.c
parentde39c3efcb27e240bf175b5462c8b6350de0df5f (diff)
downloadbcm5719-llvm-7b0ec8a9dfe3f46b4677fcafde901c717021e56c.tar.gz
bcm5719-llvm-7b0ec8a9dfe3f46b4677fcafde901c717021e56c.zip
upgrade various 'implicit int' warnings from an ext-warn to warning when not
in C89 mode. This makes it enabled by default instead of only enabled with -pedantic. Clang defaults to c99 mode, so people will see this more often than with GCC, but they can always use -std=c89 if they really want c89. llvm-svn: 65647
Diffstat (limited to 'clang/test/Sema/invalid-struct-init.c')
-rw-r--r--clang/test/Sema/invalid-struct-init.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/clang/test/Sema/invalid-struct-init.c b/clang/test/Sema/invalid-struct-init.c
index fb965926943..9777a27a0ed 100644
--- a/clang/test/Sema/invalid-struct-init.c
+++ b/clang/test/Sema/invalid-struct-init.c
@@ -3,7 +3,10 @@
typedef struct _zend_module_entry zend_module_entry;
struct _zend_module_entry {
_efree((p)); // expected-error{{type name requires a specifier or qualifier}} \
- // expected-error{{field '_efree' declared as a function}}
+ expected-error{{field '_efree' declared as a function}} \
+ expected-warning {{type specifier missing, defaults to 'int'}} \
+ expected-warning {{type specifier missing, defaults to 'int'}}
+
};
typedef struct _zend_function_entry { } zend_function_entry;
typedef struct _zend_pcre_globals { } zend_pcre_globals;
OpenPOWER on IntegriCloud