Chris Lattner | ffcd06ea | 2009-12-05 06:49:57 +0000 | [diff] [blame] | 1 | // RUN: clang-cc -emit-llvm < %s | FileCheck %s |
2 | |||||
3 | // CHECK: @test1.x = internal constant [12 x i32] [i32 1 | ||||
4 | |||||
5 | void test1() { | ||||
6 | // This should codegen as a "@test1.x" global. | ||||
7 | const int x[] = { 1, 2, 3, 4, 6, 8, 9, 10, 123, 231, 123,23 }; | ||||
8 | foo(x); | ||||
9 | |||||
10 | // CHECK: @test1() | ||||
11 | // CHECK: {{call.*@foo.*@test1.x}} | ||||
12 | } |