dwarfdump: Added macro support to llvm-dwarfdump tool.
[oota-llvm.git] / test / DebugInfo / Inputs / dwarfdump-macro.cc
diff --git a/test/DebugInfo/Inputs/dwarfdump-macro.cc b/test/DebugInfo/Inputs/dwarfdump-macro.cc
new file mode 100644 (file)
index 0000000..42b2c6a
--- /dev/null
@@ -0,0 +1,11 @@
+#define M1 Value1\r
+#include "dwarfdump-macro.h"\r
+#define M2(x, y)   ((x)+(y)* Value2)\r
+\r
+// Built with GCC\r
+// $ mkdir -p /tmp/dbginfo\r
+// $ cp dwarfdump-macro.cc /tmp/dbginfo\r
+// $ cp dwarfdump-macro.h /tmp/dbginfo\r
+// $ cp dwarfdump-macro-cmd.h /tmp/dbginfo\r
+// $ cd /tmp/dbginfo\r
+// $ g++ -c -g3 -O0 -DM3=Value3 -include dwarfdump-macro-cmd.h dwarfdump-macro.cc -o <output>\r