1 // REQUIRES: x86-registered-target
2 // RUN: %clang --target=i386-pc-linux -c %s -o /dev/null 2>&1 | FileCheck %s
4 // Check that preprocessor directives are recognised as such, but lines starting
5 // with a # that aren't directives are instead treated as comments.
7 #define MACRO .warning "This is a macro"
10 // CHECK: directives_asm.S:8:9: warning: This is a macro
12 #not a preprocessing directive
14 // CHECK-NOT: error: invalid preprocessing directive
18 .warning "line number should not change"
20 // CHECK: directives_asm.S:18:9: warning: line number should not change
24 .warning "line number should change"
26 // CHECK: directives_asm.S:101:9: warning: line number should change