xref: /llvm-project/clang/test/Driver/no-common.c (revision 3d9a0445cce368b55dc3a573bc91fe902bbb977f)
1 // RUN: %clang -target %itanium_abi_triple -### -c %s 2>&1 | \
2 // RUN:   FileCheck %s --check-prefix=DEFAULT
3 // RUN: %clang -target %itanium_abi_triple -fno-common -### -c %s 2>&1 | \
4 // RUN:   FileCheck %s --check-prefix=DEFAULT
5 // RUN: %clang -target %itanium_abi_triple -fno-common -fcommon -### -c %s 2>&1 | \
6 // RUN:   FileCheck %s --check-prefix=COMMON
7 
8 // DEFAULT-NOT: "-fcommon"
9 // COMMON:      "-fcommon"
10