• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-DEFAULT
2 // RUN: %clang_cc1 %s -fno-common -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-NOCOMMON
3 
4 // CHECK-DEFAULT: @x = common global
5 // CHECK-NOCOMMON: @x = global
6 int x;
7 
8 // CHECK-DEFAULT: @ABC = global
9 // CHECK-NOCOMMON: @ABC = global
10 typedef void* (*fn_t)(long a, long b, char *f, int c);
11 fn_t ABC __attribute__ ((nocommon));
12 
13 // CHECK-DEFAULT: @y = common global
14 // CHECK-NOCOMMON: @y = common global
15 int y __attribute__((common));
16