Reid Kleckner | 54af3e7 | 2018-02-26 22:55:33 +0000 | [diff] [blame] | 1 | // 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 Kleckner | a54daa6 | 2018-02-26 23:06:40 +0000 | [diff] [blame] | 5 | // RUN: %clang -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t1 |
Reid Kleckner | 54af3e7 | 2018-02-26 22:55:33 +0000 | [diff] [blame] | 6 | // RUN: FileCheck < %t1 %s |
Reid Kleckner | a54daa6 | 2018-02-26 23:06:40 +0000 | [diff] [blame] | 7 | // RUN: %clangxx -### --target=x86_64-windows-msvc -c -g -gcodeview %s 2> %t2 |
Reid Kleckner | 54af3e7 | 2018-02-26 22:55:33 +0000 | [diff] [blame] | 8 | // RUN: FileCheck < %t2 %s |
Martin Storsjo | f9fa17b | 2018-05-08 20:55:23 +0000 | [diff] [blame] | 9 | // RUN: %clangxx -### --target=x86_64-windows-gnu -c -g -gcodeview %s 2> %t2 |
| 10 | // RUN: FileCheck < %t2 %s |
Shoaib Meenai | 8039624 | 2018-02-27 06:04:23 +0000 | [diff] [blame] | 11 | // RUN: %clang_cl -### --target=x86_64-windows-msvc /c /Z7 -- %s 2> %t2 |
Reid Kleckner | 54af3e7 | 2018-02-26 22:55:33 +0000 | [diff] [blame] | 12 | // RUN: FileCheck < %t2 %s |
| 13 | |
| 14 | // CHECK: "-cc1" |
| 15 | // CHECK-NOT: "-dwarf-column-info" |