Clang Project

clang_source_code/test/Driver/inline-asm.c
1// RUN: %clang -target x86_64-apple-darwin10 \
2// RUN:   -### -fsyntax-only -fasm-blocks %s 2> %t
3// RUN: FileCheck --check-prefix=CHECK-BLOCKS < %t %s
4
5// RUN: %clang -target x86_64-apple-darwin10 \
6// RUN:   -### -fsyntax-only -fno-asm-blocks -fasm-blocks %s 2> %t
7// RUN: FileCheck --check-prefix=CHECK-BLOCKS < %t %s
8
9// CHECK-BLOCKS: "-fasm-blocks"
10
11// RUN: %clang -target x86_64-apple-darwin10 \
12// RUN:   -### -fsyntax-only -fasm-blocks -fno-asm-blocks %s 2> %t
13// RUN: FileCheck --check-prefix=CHECK-NO-BLOCKS < %t %s
14
15// CHECK-NO-BLOCKS-NOT: "-fasm-blocks"
16
17// RUN: %clang -target x86_64-apple-darwin10 \
18// RUN:   -### -fsyntax-only -fno-gnu-inline-asm %s 2>&1 | \
19// RUN: FileCheck --check-prefix=CHECK-NO-GNU-INLINE-ASM %s
20// RUN: %clang -target x86_64-apple-darwin10 \
21// RUN:   -### -fsyntax-only -fgnu-inline-asm -fno-gnu-inline-asm %s 2>&1 | \
22// RUN: FileCheck --check-prefix=CHECK-NO-GNU-INLINE-ASM %s
23
24// CHECK-NO-GNU-INLINE-ASM: "-fno-gnu-inline-asm"
25