After a first attempt to fix the test-suite failures, my first recommit
caused the same failures again. I had updated CMakeList.txt files of
tests that needed -fcommon, but it turns out that there are also
Makefiles which are used by some bots, so I've updated these Makefiles
now too.
See the original commit message for more details on this change:
0a9fc9233e
17 lines
700 B
C
17 lines
700 B
C
// RUN: %clang_cc1 %s -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-DEFAULT
|
|
// RUN: %clang_cc1 %s -fno-common -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-DEFAULT
|
|
// RUN: %clang_cc1 %s -fcommon -emit-llvm -o - | FileCheck %s -check-prefix=CHECK-COMMON
|
|
|
|
// CHECK-COMMON: @x = common {{(dso_local )?}}global
|
|
// CHECK-DEFAULT: @x = {{(dso_local )?}}global
|
|
int x;
|
|
|
|
// CHECK-COMMON: @ABC = {{(dso_local )?}}global
|
|
// CHECK-DEFAULT: @ABC = {{(dso_local )?}}global
|
|
typedef void* (*fn_t)(long a, long b, char *f, int c);
|
|
fn_t ABC __attribute__ ((nocommon));
|
|
|
|
// CHECK-COMMON: @y = common {{(dso_local )?}}global
|
|
// CHECK-DEFAULT: @y = common {{(dso_local )?}}global
|
|
int y __attribute__((common));
|