mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2024-12-13 19:24:21 +00:00
bdcc1ed66d
The "grep internal | count" was fragile when your source or remote paths could contain the word "internal". llvm-svn: 222685
17 lines
328 B
C
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
|