blob: 10451c98d0d423a7fcfd6f1fa2a7ddf705dd5092 [file] [log] [blame]
Reid Kleckner54af3e72018-02-26 22:55:33 +00001// Check that -dwarf-column-info does not get 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.
4
Reid Klecknera54daa62018-02-26 23:06:40 +00005// RUN: %clang -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t1
Reid Kleckner54af3e72018-02-26 22:55:33 +00006// RUN: FileCheck < %t1 %s
Reid Klecknera54daa62018-02-26 23:06:40 +00007// RUN: %clangxx -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t2
Reid Kleckner54af3e72018-02-26 22:55:33 +00008// RUN: FileCheck < %t2 %s
Reid Klecknera54daa62018-02-26 23:06:40 +00009// RUN: %clang_cl -### --target=x86_64-windows-msvc /c /Z7 %s 2> %t2
Reid Kleckner54af3e72018-02-26 22:55:33 +000010// RUN: FileCheck < %t2 %s
11
12// CHECK: "-cc1"
13// CHECK-NOT: "-dwarf-column-info"