diff options
Diffstat (limited to 'test/Preprocessor/print-assembler.s')
-rw-r--r-- | test/Preprocessor/print-assembler.s | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/test/Preprocessor/print-assembler.s b/test/Preprocessor/print-assembler.s new file mode 100644 index 0000000000000..c4e2e031f2d5b --- /dev/null +++ b/test/Preprocessor/print-assembler.s @@ -0,0 +1,16 @@ +// RUN: %clang_cc1 -E -x assembler-with-cpp %s -o - | FileCheck %s --strict-whitespace + +.intel_syntax noprefix +.text + .global _main +_main: +# asdf +# asdf + mov bogus_name, 20 + mov rax, 5 + ret + +// CHECK-LABEL: _main: +// CHECK-NEXT: {{^}} # asdf +// CHECK-NEXT: {{^}} # asdf +// CHECK-NEXT: mov bogus_name, 20 |