summaryrefslogtreecommitdiffstats
path: root/test/CodeGenCXX/empty-classes.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/CodeGenCXX/empty-classes.cpp')
-rw-r--r--test/CodeGenCXX/empty-classes.cpp16
1 files changed, 16 insertions, 0 deletions
diff --git a/test/CodeGenCXX/empty-classes.cpp b/test/CodeGenCXX/empty-classes.cpp
index 8491480..e27a961 100644
--- a/test/CodeGenCXX/empty-classes.cpp
+++ b/test/CodeGenCXX/empty-classes.cpp
@@ -1,5 +1,7 @@
// RUN: %clang_cc1 %s -I%S -triple=x86_64-apple-darwin10 -emit-llvm -O3 -o - | FileCheck %s
+// CHECK: %"struct.rdar20621065::B" = type { float, float }
+
struct Empty { };
struct A {
@@ -80,3 +82,17 @@ int main() {
return result;
}
#endif
+
+namespace rdar20621065 {
+ struct A {
+ float array[0];
+ };
+
+ struct B : A {
+ float left;
+ float right;
+ };
+
+ // Type checked at the top of the file.
+ B b;
+};
OpenPOWER on IntegriCloud