diff options
author | Eric Christopher <echristo@gmail.com> | 2013-01-08 01:54:13 +0000 |
---|---|---|
committer | Eric Christopher <echristo@gmail.com> | 2013-01-08 01:54:13 +0000 |
commit | 2fcadfe262e7574183c6cd1af5dbde2901f92275 (patch) | |
tree | 9acce7b784b9a85647b25ed61a11697ffa2ab5ff /test/CodeGen/debug-info-vector.c | |
parent | cbb99efceb3a2c27ba2382df97f3b69c75974f94 (diff) |
Add a test to make sure that vector output happens for debug info.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@171834 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'test/CodeGen/debug-info-vector.c')
-rw-r--r-- | test/CodeGen/debug-info-vector.c | 7 |
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 0000000000..b7135afeeb --- /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] |