2018-02-27 06:55:33 +08:00
|
|
|
// Check that -dwarf-column-info does not get added to the cc1 line:
|
|
|
|
// 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
|
|
|
|
|
|
|
|
// CHECK: "-cc1"
|
|
|
|
// CHECK-NOT: "-dwarf-column-info"
|