summaryrefslogtreecommitdiffstats
path: root/clang/test/Sema/enum.c
diff options
context:
space:
mode:
authorEli Friedman <eli.friedman@gmail.com>2008-12-08 02:21:03 +0000
committerEli Friedman <eli.friedman@gmail.com>2008-12-08 02:21:03 +0000
commit14fb8587be65342ceb87f39d54a1452a70ecca94 (patch)
tree21faaf8ff839abd014a9ab2299cd35a18d97bfbb /clang/test/Sema/enum.c
parentd745adedd7d06981e8fec333da008c6bf8ec8678 (diff)
downloadbcm5719-llvm-14fb8587be65342ceb87f39d54a1452a70ecca94.tar.gz
bcm5719-llvm-14fb8587be65342ceb87f39d54a1452a70ecca94.zip
Workaround for PR3173. The fix is correct in the sense that if the enum
code were working correctly, it would be a no-op, but it's not really a proper fix. That said, I don't really want to touch the enum code at the moment because I don't understand it very well, and this seems to be a relatively visible regression. llvm-svn: 60680
Diffstat (limited to 'clang/test/Sema/enum.c')
-rw-r--r--clang/test/Sema/enum.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/clang/test/Sema/enum.c b/clang/test/Sema/enum.c
index b06882b4d34..5782a43242e 100644
--- a/clang/test/Sema/enum.c
+++ b/clang/test/Sema/enum.c
@@ -55,3 +55,6 @@ enum someenum {}; // expected-warning {{use of empty enum extension}}
enum e0 { // expected-note {{previous definition is here}}
E0 = sizeof(enum e0 { E1 }) // expected-error {{nested redefinition}}
};
+
+// PR3173
+enum { PR3173A, PR3173B = PR3173A+50 };
OpenPOWER on IntegriCloud