aboutsummaryrefslogtreecommitdiffstats
path: root/test/declrefexpr.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'test/declrefexpr.cpp')
-rw-r--r--test/declrefexpr.cpp20
1 files changed, 20 insertions, 0 deletions
diff --git a/test/declrefexpr.cpp b/test/declrefexpr.cpp
new file mode 100644
index 0000000..c184577
--- /dev/null
+++ b/test/declrefexpr.cpp
@@ -0,0 +1,20 @@
+
+namespace declrefexpr_ns{
+
+class testClass {
+public:
+ testClass() = default;
+ int a;
+
+private:
+};
+} // namespace
+
+int __attribute__((weak)) main(int argc, char *argv[]) {
+ int a;
+ int b;
+ declrefexpr_ns::testClass tc;
+ tc.a = 10;
+
+ return a + b;
+}