[clang] Handle __declspec() attributes in using
[llvm-project.git] / clang / test / CodeGenCXX / 2010-06-21-LocalVarDbg.cpp
blobc0c8bf66501bf98d091eeddc0caec4c21e102124
1 // RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm %s -o - | FileCheck %s
2 // Do not use function name to create named metadata used to hold
3 // local variable info. For example. llvm.dbg.lv.~A is an invalid name.
5 // CHECK-NOT: llvm.dbg.lv.~A
6 class A {
7 public:
8 ~A() { int i = 0; i++; }
9 };
11 int foo(int i) {
12 A a;
13 return 0;