blob: a4d4ed1c6043d8a3e30e11fc8bdae1246585ee9e [file] [log] [blame]
John McCallf85e1932011-06-15 23:02:42 +00001// RUN: %clang -ObjC -ccc-host-triple i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
2// RUN: %clang -x objective-c -ccc-host-triple i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
3// RUN: %clang -x objective-c++ -ccc-host-triple i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck %s
4// RUN: %clang -x c -ccc-host-triple i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
5// RUN: %clang -x c++ -ccc-host-triple i386-apple-darwin9 -m32 -fobjc-arc %s -fsyntax-only 2>&1 | FileCheck -check-prefix NOTOBJC %s
6
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