Rafael Espindola | ff7cea8 | 2013-09-04 04:12:25 +0000 | [diff] [blame] | 1 | // RUN: %clang_cc1 %s -gline-tables-only -S -emit-llvm -o - | FileCheck %s |
Alexey Samsonov | 74a3868 | 2012-05-04 07:39:27 +0000 | [diff] [blame] | 2 | // Checks that clang with "-gline-tables-only" doesn't emit debug info |
| 3 | // for variables and types. |
| 4 | |
| 5 | // CHECK-NOT: DW_TAG_namespace |
| 6 | namespace NS { |
| 7 | // CHECK-NOT: DW_TAG_class_type |
| 8 | // CHECK-NOT: DW_TAG_friend |
| 9 | class C { friend class D; }; |
| 10 | class D {}; |
| 11 | // CHECK-NOT: DW_TAG_inheritance |
| 12 | class E : public C { |
| 13 | // CHECK-NOT: DW_TAG_reference type |
| 14 | void x(const D& d); |
| 15 | }; |
David Blaikie | 6943dea | 2013-08-20 01:28:15 +0000 | [diff] [blame] | 16 | struct F { |
| 17 | enum X { }; |
| 18 | void func(X); |
| 19 | virtual ~F(); |
| 20 | }; |
| 21 | F::~F() { |
| 22 | } |
Alexey Samsonov | 74a3868 | 2012-05-04 07:39:27 +0000 | [diff] [blame] | 23 | } |
| 24 | |
| 25 | // CHECK-NOT: DW_TAG_variable |
| 26 | NS::C c; |
| 27 | NS::D d; |
| 28 | NS::E e; |
David Blaikie | 6943dea | 2013-08-20 01:28:15 +0000 | [diff] [blame] | 29 | NS::F f; |