[docs] Add LICENSE.txt to the root of the mono-repo
[llvm-project.git] / clang / test / Driver / codeview-column-info.c
blob4cabefac06e64891c0a383efb6e2e1ff866bf468
1 // Check that -gno-column-info gets added to the cc1 line:
2 // 1) When -gcodeview is present via the clang or clang++ driver
3 // 2) When /Z7 is present via the cl driver.
5 // RUN: %clang -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t1
6 // RUN: FileCheck < %t1 %s
7 // RUN: %clangxx -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t2
8 // RUN: FileCheck < %t2 %s
9 // RUN: %clangxx -### --target=x86_64-windows-gnu -c -g -gcodeview %s 2> %t2
10 // RUN: FileCheck < %t2 %s
11 // RUN: %clang_cl -### --target=x86_64-windows-msvc /c /Z7 -- %s 2> %t2
12 // RUN: FileCheck < %t2 %s
14 // CHECK: "-gno-column-info"
16 // RUN: %clang_cl -### /Z7 -gcolumn-info -- %s 2>&1 | FileCheck --check-prefix=COLUMN %s
18 // COLUMN-NOT: "-gno-column-info"