[llvm-branch-commits] [llvm-branch] r96548 - /llvm/branches/Apple/Hermes/test/FrontendC++/2010-02-17-DbgArtificialArg.cpp

Devang Patel dpatel at apple.com
Wed Feb 17 17:06:23 PST 2010


Author: dpatel
Date: Wed Feb 17 19:06:23 2010
New Revision: 96548

URL: http://llvm.org/viewvc/llvm-project?rev=96548&view=rev
Log:
Merge r96544 from mainline.

Added:
    llvm/branches/Apple/Hermes/test/FrontendC++/2010-02-17-DbgArtificialArg.cpp

Added: llvm/branches/Apple/Hermes/test/FrontendC++/2010-02-17-DbgArtificialArg.cpp
URL: http://llvm.org/viewvc/llvm-project/llvm/branches/Apple/Hermes/test/FrontendC%2B%2B/2010-02-17-DbgArtificialArg.cpp?rev=96548&view=auto

==============================================================================
--- llvm/branches/Apple/Hermes/test/FrontendC++/2010-02-17-DbgArtificialArg.cpp (added)
+++ llvm/branches/Apple/Hermes/test/FrontendC++/2010-02-17-DbgArtificialArg.cpp Wed Feb 17 19:06:23 2010
@@ -0,0 +1,14 @@
+// RUN: %llvmgcc -g -S %s -o - | grep DW_TAG_pointer_type |  grep "i32 458767, metadata .., metadata ..., metadata .., i32 0, i64 64, i64 64, i64 0, i32 64, metadata ..."
+// Here, second to last argument "i32 64" indicates that artificial type is set.                                               
+// Test to artificial attribute attahed to "this" pointer type.
+// Radar 7655792 and 7655002
+
+class A {
+public:
+  int fn1(int i) const { return i + 2; };
+};
+
+int foo() {
+  A a;
+  return a.fn1(1);
+}





More information about the llvm-branch-commits mailing list