llvm-capstone/clang/test/CodeGen/merge-statics.c
Tim Northover bdcc1ed66d testing: make test use FileCheck
The "grep internal | count" was fragile when your source or remote paths could
contain the word "internal".

llvm-svn: 222685
2014-11-24 21:03:34 +00:00

17 lines
328 B
C

// RUN: %clang_cc1 < %s -emit-llvm | FileCheck %s
// The two decls for 'a' should merge into one llvm GlobalVariable.
struct s { int x; };
static struct s a;
struct s *ap1 = &a;
static struct s a = {
10
};
// CHECK-NOT: internal global
// CHECK: @a = internal global %struct.s { i32 10 }
// CHECK-NOT: internal-global