summaryrefslogtreecommitdiffstats
path: root/llvm/test/DebugInfo/Inputs/dwarfdump-macro.cc
diff options
context:
space:
mode:
Diffstat (limited to 'llvm/test/DebugInfo/Inputs/dwarfdump-macro.cc')
-rw-r--r--llvm/test/DebugInfo/Inputs/dwarfdump-macro.cc11
1 files changed, 11 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-macro.cc b/llvm/test/DebugInfo/Inputs/dwarfdump-macro.cc
new file mode 100644
index 00000000000..42b2c6ab54a
--- /dev/null
+++ b/llvm/test/DebugInfo/Inputs/dwarfdump-macro.cc
@@ -0,0 +1,11 @@
+#define M1 Value1
+#include "dwarfdump-macro.h"
+#define M2(x, y) ((x)+(y)* Value2)
+
+// Built with GCC
+// $ mkdir -p /tmp/dbginfo
+// $ cp dwarfdump-macro.cc /tmp/dbginfo
+// $ cp dwarfdump-macro.h /tmp/dbginfo
+// $ cp dwarfdump-macro-cmd.h /tmp/dbginfo
+// $ cd /tmp/dbginfo
+// $ g++ -c -g3 -O0 -DM3=Value3 -include dwarfdump-macro-cmd.h dwarfdump-macro.cc -o <output>
OpenPOWER on IntegriCloud