27 lines · plain
1// REQUIRES: x86-registered-target2// RUN: %clang --target=i386-pc-linux -c %s -o /dev/null 2>&1 | FileCheck %s3 4// Check that preprocessor directives are recognised as such, but lines starting5// with a # that aren't directives are instead treated as comments.6 7#define MACRO .warning "This is a macro"8 MACRO9 10// CHECK: directives_asm.S:8:9: warning: This is a macro11 12#not a preprocessing directive13 14// CHECK-NOT: error: invalid preprocessing directive15 16# 10017 18 .warning "line number should not change"19 20// CHECK: directives_asm.S:18:9: warning: line number should not change21 22#line 10023 24 .warning "line number should change"25 26// CHECK: directives_asm.S:101:9: warning: line number should change27