xref: /aosp_15_r20/external/llvm/test/MC/AsmParser/directive_file-2.s (revision 9880d6810fe72a1726cb53787c6711e909410d58)
1*9880d681SAndroid Build Coastguard Worker// RUN: llvm-mc -triple i386-unknown-unknown %s | FileCheck %s
2*9880d681SAndroid Build Coastguard Worker// Test for Bug 11740
3*9880d681SAndroid Build Coastguard Worker// This testcase has two directive files,
4*9880d681SAndroid Build Coastguard Worker// when compiled with -g, this testcase will not report error,
5*9880d681SAndroid Build Coastguard Worker// but keep the debug info existing in the assembly file.
6*9880d681SAndroid Build Coastguard Worker
7*9880d681SAndroid Build Coastguard Worker        .file "hello"
8*9880d681SAndroid Build Coastguard Worker        .file 1 "world"
9*9880d681SAndroid Build Coastguard Worker
10*9880d681SAndroid Build Coastguard Worker// CHECK: .file "hello"
11*9880d681SAndroid Build Coastguard Worker// CHECK: .file 1 "world"
12