[clang][modules] Don't prevent translation of FW_Private includes when explicitly...
[llvm-project.git] / clang / test / CodeGen / PowerPC / aix-constructor-attribute.c
blob7cd72a3276936ffff4312a60fcee67268b84d345
1 // RUN: %clang_cc1 -triple powerpc-ibm-aix-xcoff -emit-llvm \
2 // RUN: -fno-use-cxa-atexit < %s |\
3 // RUN: FileCheck %s
4 // RUN: %clang_cc1 -triple powerpc64-ibm-aix-xcoff -emit-llvm \
5 // RUN: -fno-use-cxa-atexit < %s | \
6 // RUN: FileCheck %s
8 // CHECK: @llvm.global_ctors = appending global [3 x { i32, ptr, ptr }] [{ i32, ptr, ptr } { i32 65535, ptr @foo3, ptr null }, { i32, ptr, ptr } { i32 180, ptr @foo2, ptr null }, { i32, ptr, ptr } { i32 180, ptr @foo, ptr null }]
10 int foo(void) __attribute__((constructor(180)));
11 int foo2(void) __attribute__((constructor(180)));
12 int foo3(void) __attribute__((constructor(65535)));
14 int foo3(void) {
15 return 3;
18 int foo2(void) {
19 return 2;
22 int foo(void) {
23 return 1;