2020-07-06 02:47:02 +08:00
|
|
|
// Check that -gno-column-info gets added to the cc1 line:
|
2018-02-27 06:55:33 +08:00
|
|
|
// 1) When -gcodeview is present via the clang or clang++ driver
|
|
|
|
// 2) When /Z7 is present via the cl driver.
|
|
|
|
|
2018-02-27 07:06:40 +08:00
|
|
|
// RUN: %clang -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t1
|
2018-02-27 06:55:33 +08:00
|
|
|
// RUN: FileCheck < %t1 %s
|
2018-02-27 07:06:40 +08:00
|
|
|
// RUN: %clangxx -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t2
|
2018-02-27 06:55:33 +08:00
|
|
|
// RUN: FileCheck < %t2 %s
|
2018-05-09 04:55:23 +08:00
|
|
|
// RUN: %clangxx -### --target=x86_64-windows-gnu -c -g -gcodeview %s 2> %t2
|
|
|
|
// RUN: FileCheck < %t2 %s
|
2018-02-27 14:04:23 +08:00
|
|
|
// RUN: %clang_cl -### --target=x86_64-windows-msvc /c /Z7 -- %s 2> %t2
|
2018-02-27 06:55:33 +08:00
|
|
|
// RUN: FileCheck < %t2 %s
|
|
|
|
|
2020-07-06 02:47:02 +08:00
|
|
|
// CHECK: "-gno-column-info"
|
|
|
|
|
|
|
|
// RUN: %clang_cl -### /Z7 -gcolumn-info -- %s 2>&1 | FileCheck --check-prefix=COLUMN %s
|
|
|
|
|
|
|
|
// COLUMN-NOT: "-gno-column-info"
|