[clang-tidy][use-internal-linkage]fix false positives for global overloaded operator...
[llvm-project.git] / clang / test / CodeGenCXX / 2005-01-03-StaticInitializers.cpp
blobb8078d88a3f78a93bef55bb320e34cf0a82fd0f2
1 // RUN: %clang_cc1 -triple=x86_64-linux-gnu -emit-llvm %s -o - | FileCheck %s
2 // RUN: %clang_cc1 -triple=i386-linux-gnu -emit-llvm %s -o - | FileCheck %s
4 struct S {
5 int A[2];
6 };
8 // CHECK: @XX = global i32 4, align 4
9 int XX = (int)(long)&(((struct S*)0)->A[1]);