20 lines · c
1// Check that -gno-column-info gets added to the cc1 line:2// 1) When -gcodeview is present via the clang or clang++ driver3// 2) When /Z7 is present via the cl driver.4 5// RUN: %clang -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t16// RUN: FileCheck < %t1 %s7// RUN: %clangxx -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t28// RUN: FileCheck < %t2 %s9// RUN: %clangxx -### --target=x86_64-windows-gnu -c -g -gcodeview %s 2> %t210// RUN: FileCheck < %t2 %s11// RUN: %clang_cl -### --target=x86_64-windows-msvc /c /Z7 -- %s 2> %t212// RUN: FileCheck < %t2 %s13 14// CHECK: "-gno-column-info"15 16// RUN: %clang_cl -### /Z7 -gcolumn-info -- %s 2>&1 | FileCheck --check-prefix=COLUMN %s17// RUN: %clang_cl -### --target=x86_64-windows-msvc /Z7 -fprofile-sample-use=%S/Inputs/file.prof -- %s 2>&1 | FileCheck --check-prefix=COLUMN %s18 19// COLUMN-NOT: "-gno-column-info"20