summaryrefslogtreecommitdiffstats
path: root/clang/test/Driver/codeview-column-info.c
blob: 6b524accd7b7082f8735620e6ba6fd7dbcfb9b83 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
// 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.

// RUN: %clang -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t1
// RUN: FileCheck < %t1 %s
// RUN: %clangxx -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t2
// RUN: FileCheck < %t2 %s
// RUN: %clangxx -### --target=x86_64-windows-gnu -c -g -gcodeview %s 2> %t2
// RUN: FileCheck < %t2 %s
// RUN: %clang_cl -### --target=x86_64-windows-msvc /c /Z7 -- %s 2> %t2
// RUN: FileCheck < %t2 %s

// CHECK: "-cc1"
// CHECK-NOT: "-dwarf-column-info"
OpenPOWER on IntegriCloud