summaryrefslogtreecommitdiff
path: root/test/CodeGen/debug-info-vector.c
diff options
context:
space:
mode:
authorDimitry Andric <dim@FreeBSD.org>2013-04-08 18:45:10 +0000
committerDimitry Andric <dim@FreeBSD.org>2013-04-08 18:45:10 +0000
commit809500fc2c13c8173a16b052304d983864e4a1e1 (patch)
tree4fc2f184c499d106f29a386c452b49e5197bf63d /test/CodeGen/debug-info-vector.c
parentbe7c9ec198dcdb5bf73a35bfbb00b3333cb87909 (diff)
downloadsrc-test2-809500fc2c13c8173a16b052304d983864e4a1e1.tar.gz
src-test2-809500fc2c13c8173a16b052304d983864e4a1e1.zip
Notes
Diffstat (limited to 'test/CodeGen/debug-info-vector.c')
-rw-r--r--test/CodeGen/debug-info-vector.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/test/CodeGen/debug-info-vector.c b/test/CodeGen/debug-info-vector.c
new file mode 100644
index 000000000000..b7135afeeb8f
--- /dev/null
+++ b/test/CodeGen/debug-info-vector.c
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -emit-llvm -g %s -o - | FileCheck %s
+typedef int v4si __attribute__((__vector_size__(16)));
+
+v4si a;
+
+// Test that we get an array type that's also a vector out of debug.
+// CHECK: [ DW_TAG_array_type ] [line 0, size 128, align 128, offset 0] [vector] [from int]