diff options
Diffstat (limited to 'test/Sema/function-redecl.c')
-rw-r--r-- | test/Sema/function-redecl.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/test/Sema/function-redecl.c b/test/Sema/function-redecl.c index 7076bdf3bd1f..ff8e003cd722 100644 --- a/test/Sema/function-redecl.c +++ b/test/Sema/function-redecl.c @@ -129,3 +129,7 @@ void test_x() { enum e0 {one}; void f3(); void f3(enum e0 x) {} + +enum incomplete_enum; +void f4(); // expected-note {{previous declaration is here}} +void f4(enum incomplete_enum); // expected-error {{conflicting types for 'f4'}} |