diff options
Diffstat (limited to 'llvm/test/DebugInfo/Inputs')
| -rw-r--r-- | llvm/test/DebugInfo/Inputs/dwarfdump-macro-cmd.h | 1 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/Inputs/dwarfdump-macro.cc | 11 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/Inputs/dwarfdump-macro.h | 5 | ||||
| -rw-r--r-- | llvm/test/DebugInfo/Inputs/dwarfdump-macro.o | bin | 0 -> 5616 bytes |
4 files changed, 17 insertions, 0 deletions
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-macro-cmd.h b/llvm/test/DebugInfo/Inputs/dwarfdump-macro-cmd.h new file mode 100644 index 00000000000..1209f66d5fe --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/dwarfdump-macro-cmd.h @@ -0,0 +1 @@ +#define M4 Value4
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>
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-macro.h b/llvm/test/DebugInfo/Inputs/dwarfdump-macro.h new file mode 100644 index 00000000000..75b35f0e4c2 --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/dwarfdump-macro.h @@ -0,0 +1,5 @@ +
+
+
+#undef M1
+#define M1 NewValue1
diff --git a/llvm/test/DebugInfo/Inputs/dwarfdump-macro.o b/llvm/test/DebugInfo/Inputs/dwarfdump-macro.o Binary files differnew file mode 100644 index 00000000000..5f1cb5e2707 --- /dev/null +++ b/llvm/test/DebugInfo/Inputs/dwarfdump-macro.o |

