brintos

brintos / llvm-project-archived public Read only

0
0
Text · 700 B · 11de0f2 Raw
17 lines · c
1// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-DEFAULT2// RUN: %clang_cc1 %s -fno-common -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-DEFAULT3// RUN: %clang_cc1 %s -fcommon -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-COMMON4 5// CHECK-COMMON: @x = common {{(dso_local )?}}global6// CHECK-DEFAULT: @x = {{(dso_local )?}}global7int x;8 9// CHECK-COMMON: @ABC = {{(dso_local )?}}global10// CHECK-DEFAULT: @ABC = {{(dso_local )?}}global11typedef void* (*fn_t)(long a, long b, char *f, int c);12fn_t ABC __attribute__ ((nocommon));13 14// CHECK-COMMON: @y = common {{(dso_local )?}}global15// CHECK-DEFAULT: @y = common {{(dso_local )?}}global16int y __attribute__((common));17