[cfe-commits] r137770 - /cfe/trunk/test/CodeGenCXX/2010-06-21-LocalVarDbg.cpp

Eric Christopher echristo at apple.com
Tue Aug 16 14:41:48 PDT 2011


Author: echristo
Date: Tue Aug 16 16:41:48 2011
New Revision: 137770

URL: http://llvm.org/viewvc/llvm-project?rev=137770&view=rev
Log:
Migrate test from llvm/test/FrontendC++ and FileCheckize.

Added:
    cfe/trunk/test/CodeGenCXX/2010-06-21-LocalVarDbg.cpp

Added: cfe/trunk/test/CodeGenCXX/2010-06-21-LocalVarDbg.cpp
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/CodeGenCXX/2010-06-21-LocalVarDbg.cpp?rev=137770&view=auto
==============================================================================
--- cfe/trunk/test/CodeGenCXX/2010-06-21-LocalVarDbg.cpp (added)
+++ cfe/trunk/test/CodeGenCXX/2010-06-21-LocalVarDbg.cpp Tue Aug 16 16:41:48 2011
@@ -0,0 +1,14 @@
+// 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;
+}





More information about the cfe-commits mailing list