// RUN: %clang_cc1 -g -emit-llvm %s -o - | FileCheck %s
// Do not use function name to create named metadata used to hold
// local variable info. For example. llvm.dbg.lv.~A is an invalid name.

// CHECK-NOT: llvm.dbg.lv.~A
class A {
public:
  ~A() { int i = 0; i++; }
};

int foo(int i) {
  A a;
  return 0;
}

Migrate test from llvm/test/FrontendC++ and FileCheckize.
Migrate test from llvm/test/FrontendC++ and FileCheckize.

git-svn-id: ffe668792ed300d6c2daa1f6eba2e0aa28d7ec6c@137770 91177308-0d34-0410-b5e6-96231b3b80d8
