aboutsummaryrefslogtreecommitdiff
path: root/test/MC/AsmParser/directive_file-2.s
diff options
context:
space:
mode:
Diffstat (limited to 'test/MC/AsmParser/directive_file-2.s')
-rw-r--r--test/MC/AsmParser/directive_file-2.s11
1 files changed, 11 insertions, 0 deletions
diff --git a/test/MC/AsmParser/directive_file-2.s b/test/MC/AsmParser/directive_file-2.s
new file mode 100644
index 000000000000..ff6df5116ad5
--- /dev/null
+++ b/test/MC/AsmParser/directive_file-2.s
@@ -0,0 +1,11 @@
+// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
+// Test for Bug 11740
+// This testcase has two directive files,
+// when compiled with -g, this testcase will not report error,
+// but keep the debug info existing in the assembly file.
+
+ .file "hello"
+ .file 1 "world"
+
+// CHECK: .file "hello"
+// CHECK: .file 1 "world"