brintos

brintos / llvm-project-archived public Read only

0
0
Text · 1.4 KiB · 2a97c47 Raw
37 lines · c
1// RUN: %clang_cc1 -triple=x86_64-linux-gnu -emit-llvm %s -o - | FileCheck %s2 3// CHECK: @tentative_attr_first ={{.*}} global i32 undef4int tentative_attr_first __attribute__((loader_uninitialized));5int tentative_attr_first;6 7// CHECK: @tentative_attr_second ={{.*}} global i32 undef8int tentative_attr_second;9int tentative_attr_second __attribute__((loader_uninitialized));10 11// CHECK: @array ={{.*}} global [16 x float] undef12float array[16] __attribute__((loader_uninitialized));13 14typedef struct15{16  int x;17  float y;18} s;19 20// CHECK: @i ={{.*}} global %struct.s undef21// CHECK: @j1 ={{.*}}addrspace(1) global %struct.s undef22// CHECK: @j2 ={{.*}}addrspace(2) global %struct.s undef23// CHECK: @j3 ={{.*}}addrspace(3) global %struct.s undef24// CHECK: @j4 ={{.*}}addrspace(4) global %struct.s undef25// CHECK: @j5 ={{.*}}addrspace(5) global %struct.s undef26// CHECK: @j99 ={{.*}}addrspace(99) global %struct.s undef27s i __attribute__((loader_uninitialized));28s j1 __attribute__((loader_uninitialized, address_space(1)));29s j2 __attribute__((loader_uninitialized, address_space(2)));30s j3 __attribute__((loader_uninitialized, address_space(3)));31s j4 __attribute__((loader_uninitialized, address_space(4)));32s j5 __attribute__((loader_uninitialized, address_space(5)));33s j99 __attribute__((loader_uninitialized, address_space(99)));34 35// CHECK: @private_extern_ok = hidden global i32 undef36__private_extern__ int private_extern_ok __attribute__((loader_uninitialized));37