llvm-project/clang/test/CodeGenCXX/2005-01-03-StaticInitializers.cpp
NAKAMURA Takumi fcd16e36c8 clang/test: [PR8833] Introduce the feature "LP64" to suppress LLP64-incompatible tests.
I think some of them could be rewritten to fit also LLP64.

llvm-svn: 163699
2012-09-12 10:45:40 +00:00

10 lines
176 B
C++

// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
// REQUIRES: LP64
struct S {
int A[2];
};
// CHECK-NOT: llvm.global_ctor
int XX = (int)(long)&(((struct S*)0)->A[1]);