summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/invalid-struct-init.c
diff options
context:
space:
mode:
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