diff options
author | Chris Lattner <sabre@nondot.org> | 2009-12-05 06:49:57 +0000 |
---|---|---|
committer | Chris Lattner <sabre@nondot.org> | 2009-12-05 06:49:57 +0000 |
commit | ffcd06ea7ca93e082d0ed3c87acabf53c9d70a32 (patch) | |
tree | f1e93e84079c2ed98c82074394723b4c7eb76b03 /clang/test/CodeGen/decl.c | |
parent | c86b6fbb4084b04a90c85108c925d5dcdca094cc (diff) | |
download | bcm5719-llvm-ffcd06ea7ca93e082d0ed3c87acabf53c9d70a32.tar.gz bcm5719-llvm-ffcd06ea7ca93e082d0ed3c87acabf53c9d70a32.zip |
simplify a condition and add a testcase.
llvm-svn: 90652
Diffstat (limited to 'clang/test/CodeGen/decl.c')
-rw-r--r-- | clang/test/CodeGen/decl.c | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/clang/test/CodeGen/decl.c b/clang/test/CodeGen/decl.c new file mode 100644 index 00000000000..e2d55ecaf1c --- /dev/null +++ b/clang/test/CodeGen/decl.c @@ -0,0 +1,12 @@ +// RUN: clang-cc -emit-llvm < %s | FileCheck %s + +// CHECK: @test1.x = internal constant [12 x i32] [i32 1 + +void test1() { + // This should codegen as a "@test1.x" global. + const int x[] = { 1, 2, 3, 4, 6, 8, 9, 10, 123, 231, 123,23 }; + foo(x); + +// CHECK: @test1() +// CHECK: {{call.*@foo.*@test1.x}} +} |