new testcase.
authorChris Lattner <sabre@nondot.org>
Sat, 19 Feb 2005 06:54:44 +0000 (06:54 +0000)
committerChris Lattner <sabre@nondot.org>
Sat, 19 Feb 2005 06:54:44 +0000 (06:54 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@20244 91177308-0d34-0410-b5e6-96231b3b80d8

test/C++Frontend/2005-02-19-BitfieldStructCrash.cpp [new file with mode: 0644]

diff --git a/test/C++Frontend/2005-02-19-BitfieldStructCrash.cpp b/test/C++Frontend/2005-02-19-BitfieldStructCrash.cpp
new file mode 100644 (file)
index 0000000..9923271
--- /dev/null
@@ -0,0 +1,11 @@
+// RUN: %llvmgxx -S %s -o -
+
+struct QChar {unsigned short X; QChar(unsigned short); } ;
+
+struct Command {
+        Command(QChar c) : c(c) {}
+        unsigned int type : 4;
+        QChar c;
+    };
+
+Command X(QChar('c'));