aboutsummaryrefslogtreecommitdiff
path: root/test/Parser/cxx-class.cpp
diff options
context:
space:
mode:
authorChris Lattner <sabre@nondot.org>2008-12-18 01:12:00 +0000
committerChris Lattner <sabre@nondot.org>2008-12-18 01:12:00 +0000
commitbc8d56496a6ecdba14769df03d75c001184f8c54 (patch)
treef7ba6231add5216bfee499ba3d1f5a7cb560252b /test/Parser/cxx-class.cpp
parente6046285890cbd2be24933df32f0fd695ae9cd94 (diff)
implement PR3177 - "__extension__ union" not supported in C++ mode
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@61180 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/Parser/cxx-class.cpp')
-rw-r--r--test/Parser/cxx-class.cpp9
1 files changed, 9 insertions, 0 deletions
diff --git a/test/Parser/cxx-class.cpp b/test/Parser/cxx-class.cpp
index 5afa8d6ac2..39b787fc8d 100644
--- a/test/Parser/cxx-class.cpp
+++ b/test/Parser/cxx-class.cpp
@@ -27,3 +27,12 @@ void glo()
{
struct local {};
}
+
+// PR3177
+typedef union {
+ __extension__ union {
+ int a;
+ float b;
+ } y;
+} bug3177;
+