blob: e2d55ecaf1ccd9796ebe1c0085ce118b2d5854cf [file] [log] [blame]
Chris Lattnerffcd06ea2009-12-05 06:49:57 +00001// RUN: clang-cc -emit-llvm < %s | FileCheck %s
2
3// CHECK: @test1.x = internal constant [12 x i32] [i32 1
4
5void 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}