diff options
Diffstat (limited to 'test/FrontendC++')
-rw-r--r-- | test/FrontendC++/2010-02-08-NamespaceVar.cpp | 16 | ||||
-rw-r--r-- | test/FrontendC++/2010-02-17-DbgArtificialArg.cpp | 14 |
2 files changed, 14 insertions, 16 deletions
diff --git a/test/FrontendC++/2010-02-08-NamespaceVar.cpp b/test/FrontendC++/2010-02-08-NamespaceVar.cpp deleted file mode 100644 index cd8247a..0000000 --- a/test/FrontendC++/2010-02-08-NamespaceVar.cpp +++ /dev/null @@ -1,16 +0,0 @@ -// RUN: %llvmgxx -S %s -o - | grep cX - -namespace C { - int c = 1; - namespace { - int cX = 6; - void marker2() { - cX; - } - } -} - -int main() { - C::marker2(); - return 0; -} diff --git a/test/FrontendC++/2010-02-17-DbgArtificialArg.cpp b/test/FrontendC++/2010-02-17-DbgArtificialArg.cpp new file mode 100644 index 0000000..4c8e0e5 --- /dev/null +++ b/test/FrontendC++/2010-02-17-DbgArtificialArg.cpp @@ -0,0 +1,14 @@ +// RUN: %llvmgcc -g -S %s -o - | grep DW_TAG_pointer_type | grep "i32 458767, metadata .., metadata ..., metadata .., i32 ., i64 .., i64 .., 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); +} |