blob: 2f520ecf07e160e102b06b1cea5ae87c9d85f94c [file] [log] [blame]
Chris Lattnere966d9a2009-03-20 16:28:22 +00001// RUN: clang -x assembler-with-cpp -E %s > %t &&
Daniel Dunbar5bea06a2008-12-01 19:23:47 +00002
3#ifndef __ASSEMBLER__
4#error "__ASSEMBLER__ not defined"
5#endif
Chris Lattnere966d9a2009-03-20 16:28:22 +00006
7
8// Invalid token pasting is ok.
9// RUN: grep '1: X .' %t &&
10#define A X ## .
111: A
12
13// Line markers are not linemarkers in .S files, they are passed through.
14// RUN: grep '# 321' %t &&
15# 321
16
17// Unknown directives are passed through.
18// RUN: grep '# B C' %t &&
19# B C
20
21// Unknown directives are expanded.
22// RUN: grep '# BAR42' %t &&
23#define D(x) BAR ## x
24# D(42)
25
26// Unmatched quotes are permitted.
27// RUN: grep "2: '" %t &&
28// RUN: grep '3: "' %t &&
292: '
303: "
31
32// Empty char literals are ok.
33// RUN: grep "4: ''" %t &&
344: ''
35
36// RUN: true