diff options
Diffstat (limited to 'test/Sema/enum.c')
-rw-r--r-- | test/Sema/enum.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/test/Sema/enum.c b/test/Sema/enum.c index 5782a43242..4c24b580d8 100644 --- a/test/Sema/enum.c +++ b/test/Sema/enum.c @@ -58,3 +58,9 @@ enum e0 { // expected-note {{previous definition is here}} // PR3173 enum { PR3173A, PR3173B = PR3173A+50 }; + +// PR2753 +void foo() { + enum xpto; // expected-warning{{ISO C forbids forward references to 'enum' types}} + enum xpto; // expected-warning{{ISO C forbids forward references to 'enum' types}} +} |