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