blob: 96f03656e6ea4b6dca10e1eab1a983b231aa58a9 [file] [log] [blame]
Sebastian Popedd4f3c2012-01-13 20:37:02 +00001// RUN: %clang -ObjC -target i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
2// RUN: %clang -x objective-c -target i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
3// RUN: %clang -x objective-c++ -target i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
4// RUN: %clang -x c -target i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
5// RUN: %clang -x c++ -target i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
John McCallf85e1932011-06-15 23:02:42 +00006
7// Just to test clang is working.
8# foo
9
10// CHECK: error: -fobjc-arc is not supported with fragile abi
11// CHECK-NOT: invalid preprocessing directive
12
13// NOTOBJC-NOT: error: -fobjc-arc is not supported with fragile abi
14// NOTOBJC: invalid preprocessing directive