summaryrefslogtreecommitdiffstats
path: root/lldb
diff options
context:
space:
mode:
Diffstat (limited to 'lldb')
-rw-r--r--lldb/lit/tools/lldb-instr/Inputs/foo.cpp6
-rw-r--r--lldb/lit/tools/lldb-instr/Inputs/foo.h5
-rw-r--r--lldb/lit/tools/lldb-instr/TestInstrumentationRecord.test3
3 files changed, 13 insertions, 1 deletions
diff --git a/lldb/lit/tools/lldb-instr/Inputs/foo.cpp b/lldb/lit/tools/lldb-instr/Inputs/foo.cpp
index 51c89758cf9..bef01dc60a6 100644
--- a/lldb/lit/tools/lldb-instr/Inputs/foo.cpp
+++ b/lldb/lit/tools/lldb-instr/Inputs/foo.cpp
@@ -1,5 +1,9 @@
#include "foo.h"
+#define MACRO_FOO \
+ { void; }
+#define MACRO_BAR(B) B
+
Foo::Foo() {}
void Foo::A() {}
void Foo::B(int i) {}
@@ -9,3 +13,5 @@ void Foo::E() {}
int Foo::F(int i) { return i; }
void Foo::G(const char *fmt...) {}
Foo Foo::H() { return Foo(); }
+void Foo::I() const { MACRO_FOO; }
+Bar Foo::J() const { return MACRO_BAR(Bar()); }
diff --git a/lldb/lit/tools/lldb-instr/Inputs/foo.h b/lldb/lit/tools/lldb-instr/Inputs/foo.h
index 913960440c4..95c0c0015d6 100644
--- a/lldb/lit/tools/lldb-instr/Inputs/foo.h
+++ b/lldb/lit/tools/lldb-instr/Inputs/foo.h
@@ -1,3 +1,4 @@
+struct Bar {};
struct Foo {
Foo();
Foo(int i);
@@ -8,6 +9,8 @@ struct Foo {
int D(bool b) const;
static void E();
static int F(int i);
- void G(const char* fmt...);
+ void G(const char *fmt...);
static Foo H();
+ void I() const;
+ Bar J() const;
};
diff --git a/lldb/lit/tools/lldb-instr/TestInstrumentationRecord.test b/lldb/lit/tools/lldb-instr/TestInstrumentationRecord.test
index 6921a040ecc..af33df0ab83 100644
--- a/lldb/lit/tools/lldb-instr/TestInstrumentationRecord.test
+++ b/lldb/lit/tools/lldb-instr/TestInstrumentationRecord.test
@@ -15,3 +15,6 @@
# CHECK-NOT: LLDB_RECORD_STATIC_METHOD(void, Foo, G
# CHECK: LLDB_RECORD_STATIC_METHOD_NO_ARGS(Foo, Foo, H);
# CHECK: LLDB_RECORD_RESULT(Foo())
+# CHECK-NOT: LLDB_RECORD_METHOD_CONST_NO_ARGS(void, Foo, I);
+# CHECK: LLDB_RECORD_METHOD_CONST_NO_ARGS(Bar, Foo, J);
+# CHECK-NOT: LLDB_RECORD_RESULT(Bar());
OpenPOWER on IntegriCloud