-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface MyObject {
int _foo;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Subclass
{
-// RUN: clang-cc -verify %s
+// RUN: clang -cc1 -verify %s
@protocol NSObject
- (oneway void)release;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@compatibility_alias alias4 foo; // expected-warning {{cannot find interface declaration for 'foo'}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
// Note: GCC doesn't produce any of the following errors.
@interface Super @end // expected-note {{previous definition is here}}
-// RUN: clang-cc -fsyntax-only -verify -pedantic %s
+// RUN: clang -cc1 -fsyntax-only -verify -pedantic %s
struct S { int a; };
-// RUN: clang-cc -triple i386-unknown-unknown %s -fsyntax-only
+// RUN: clang -cc1 -triple i386-unknown-unknown %s -fsyntax-only
@interface Test {
double a;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
/*
Conditions for warning:
-// RUN: clang-cc %s -verify -fsyntax-only
+// RUN: clang -cc1 %s -verify -fsyntax-only
@class NSString;
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
@interface A {
int X __attribute__((deprecated));
-// RUN: clang-cc -verify -fsyntax-only -fblocks %s
+// RUN: clang -cc1 -verify -fsyntax-only -fblocks %s
@interface TestAttrMallocOnMethods {}
- (id) test1 __attribute((malloc)); // expected-warning {{functions returning a pointer type}}
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
__attribute__((__objc_exception__))
@interface NSException {
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
static id __attribute((objc_gc(weak))) a;
static id __attribute((objc_gc(strong))) b;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface I
- (id) retain;
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -fobjc-gc-only %s
+// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify -fblocks -fobjc-gc-only %s
@interface Thing {}
-// RUN: clang-cc -fsyntax-only %s -verify -fblocks
+// RUN: clang -cc1 -fsyntax-only %s -verify -fblocks
// FIXME: should compile
// Test for blocks with explicit return type specified.
-// RUN: clang-cc -fsyntax-only -verify %s -fblocks
+// RUN: clang -cc1 -fsyntax-only -verify %s -fblocks
@interface NSObject {
struct objc_object *isa;
-// RUN: clang-cc -fsyntax-only -verify -fblocks %s
+// RUN: clang -cc1 -fsyntax-only -verify -fblocks %s
@protocol NSObject;
void bar(id(^)(void));
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
#include <stddef.h>
-// RUN: clang-cc -verify %s
+// RUN: clang -cc1 -verify %s
@protocol P;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface MyClass1 @end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef struct objc_class *Class;
@interface NSObject
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Foo
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface SUPER
- (int) meth;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Foo // expected-note {{previous definition is here}}
@end
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
@interface X
{
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol P1 @end
@protocol P2 @end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol NSWindowDelegate @end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol SUPER;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Foo
- (int) garf; // expected-note {{ previous declaration is here}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef struct objc_class *Class;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef int INTF3; // expected-note {{previous definition is here}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface MyBase
- (void) rootInstanceMethod;
-// RUN: clang-cc -verify %s
+// RUN: clang -cc1 -verify %s
typedef struct objc_class *Class;
@interface XX
-// RUN: clang -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Test {}
+ (Test*)one;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface INTF1 @end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
// pr5552
@interface Protocol
-// RUN: clang-cc -mcpu pentium4 %s -print-stats
+// RUN: clang -cc1 -mcpu pentium4 %s -print-stats
#ifdef __APPLE__
#include <Cocoa/Cocoa.h>
#endif
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
typedef unsigned int NSUInteger;
-// RUN: clang-cc -pedantic -fsyntax-only -verify %s
+// RUN: clang -cc1 -pedantic -fsyntax-only -verify %s
typedef signed char BOOL;
@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-// RUN: clang-cc -fsyntax-only -verify -pedantic %s
+// RUN: clang -cc1 -fsyntax-only -verify -pedantic %s
#define nil (void *)0;
#define Nil (void *)0;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
#define nil (void *)0;
#define Nil (void *)0;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
#define nil (void *)0;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
extern void foo();
-// RUN: clang-cc -fsyntax-only -pedantic -verify %s
+// RUN: clang -cc1 -fsyntax-only -pedantic -verify %s
#define nil (void *)0;
-// RUN: clang-cc -fsyntax-only -verify -pedantic %s
+// RUN: clang -cc1 -fsyntax-only -verify -pedantic %s
@interface Derived
@end
-// RUN: clang-cc -fsyntax-only -verify -pedantic %s
+// RUN: clang -cc1 -fsyntax-only -verify -pedantic %s
#define nil (void *)0;
#define Nil (void *)0;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol MyProtocol
@end
-// RUN: clang-cc -fsyntax-only %s
+// RUN: clang -cc1 -fsyntax-only %s
// FIXME: This test case tests the patch applied in: http://lists.cs.uiuc.edu/pipermail/cfe-commits/Week-of-Mon-20080602/006017.html
// Eventually that logic should be treated as an extension.
-// RUN: clang-cc -fsyntax-only -verify -pedantic %s
+// RUN: clang -cc1 -fsyntax-only -verify -pedantic %s
typedef signed char BOOL;
typedef int NSInteger;
-// RUN: clang-cc -fsyntax-only -verify -pedantic %s
+// RUN: clang -cc1 -fsyntax-only -verify -pedantic %s
@protocol NSObject
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface A
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol P0
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
// <rdar://problem/6212771>
#define nil ((void*) 0)
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface PBXBuildSettingsDictionary
{
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol MyProtocol @end
-// RUN: clang-cc -fsyntax-only -verify -pedantic %s
+// RUN: clang -cc1 -fsyntax-only -verify -pedantic %s
@protocol NSObject
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface INTF
{
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface ReadOnly
{
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
- (NSDictionary*) _executeScript:(NSString *)source { // expected-error 2 {{expected a type}} \
// expected-error {{missing context for method declaration}}
-// RUN: clang-cc -fobjc-nonfragile-abi -verify -fsyntax-only %s
+// RUN: clang -cc1 -fobjc-nonfragile-abi -verify -fsyntax-only %s
@interface NSView
- (id)initWithView:(id)realView;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface B1 {
@public
-// RUN: clang-cc -verify %s
+// RUN: clang -cc1 -verify %s
@protocol MyProto1
@optional
-// RUN: clang-cc -triple i386-apple-darwin9 -fobjc-gc -fsyntax-only -verify %s
+// RUN: clang -cc1 -triple i386-apple-darwin9 -fobjc-gc -fsyntax-only -verify %s
@interface INTF
{
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
// rdar://6597252
Class test1(Class X) {
-/* RUN: clang-cc -Wall -fsyntax-only -verify -std=c89 -pedantic %s
+/* RUN: clang -cc1 -Wall -fsyntax-only -verify -std=c89 -pedantic %s
*/
@class NSArray;
-// RUN: clang-cc -verify -fsyntax-only %s
+// RUN: clang -cc1 -verify -fsyntax-only %s
@class NSString;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
//===----------------------------------------------------------------------===//
// The following code is reduced using delta-debugging from
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@class FOO, BAR;
@class FOO, BAR;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface I
+ new; // expected-note {{method 'new' is used for the forward class}}
-// RUN: clang-cc %s -verify -fms-extensions
+// RUN: clang -cc1 %s -verify -fms-extensions
@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
typedef struct _NSRange { } NSRange;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef struct objc_object {
struct objc_class *isa;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol Foo;
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
// id is now builtin. There should be no errors.
id obj;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
// Don't warn about some common ObjC idioms unless we have -Wparentheses on.
// <rdar://problem/7382435>
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface foo
+ (void) cx __attribute__((weak_import));
-// RUN: clang-cc -pedantic -fsyntax-only -verify %s
+// RUN: clang -cc1 -pedantic -fsyntax-only -verify %s
@protocol MyProto1
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol P
- (id) inst_in_proto;
-// RUN: clang-cc -triple i386-apple-darwin9 %s -fsyntax-only -verify
+// RUN: clang -cc1 -triple i386-apple-darwin9 %s -fsyntax-only -verify
// rdar://5957506
@interface NSWhatever :
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
@interface A
{
int ivar;
-// RUN: clang-cc %s -fsyntax-only -verify -triple i386-apple-darwin9
+// RUN: clang -cc1 %s -fsyntax-only -verify -triple i386-apple-darwin9
typedef struct objc_object {} *id;
typedef signed char BOOL;
typedef unsigned int NSUInteger;
-// RUN: clang-cc -fsyntax-only -verify -triple i686-apple-darwin9 %s
+// RUN: clang -cc1 -fsyntax-only -verify -triple i686-apple-darwin9 %s
// FIXME: must also compile as Objective-C++
// <rdar://problem/6487662>
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface I1 {
@private
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface XX
int x; // expected-error {{cannot declare variable inside @interface or @protocol}}
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
// rdar://6124613
void test1() {
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Super @end
Super s1; // expected-error{{interface type cannot be statically allocated}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef struct NotAClass {
int a, b;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@class NSString, NSArray;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef unsigned char BOOL;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface MySuperClass
{
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
@interface Test {
int x;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Sprite {
int sprite, spree;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
struct S; // expected-note{{forward declaration of 'struct S'}}
typedef int FOO();
-// RUN: clang-cc -fsyntax-only -fobjc-nonfragile-abi -verify %s
+// RUN: clang -cc1 -fsyntax-only -fobjc-nonfragile-abi -verify %s
@interface Super {
id value2; // expected-note {{previously declared 'value2' here}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@implementation INTF // expected-warning {{cannot find interface declaration for 'INTF'}}
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef struct objc_object {
Class isa;
-// RUN: clang-cc -checker-cfref -verify %s
+// RUN: clang -cc1 -checker-cfref -verify %s
typedef signed char BOOL;
typedef int NSInteger;
typedef unsigned int NSUInteger;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
-// RUN: clang-cc -verify -fsyntax-only %s
+// RUN: clang -cc1 -verify -fsyntax-only %s
@class NSString;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface foo
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
typedef unsigned int NSUInteger;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface foo
- (int)meth;
-// RUN: clang-cc -ast-print %s
+// RUN: clang -cc1 -ast-print %s
extern void abort(void);
#define CHECK_IF(expr) if(!(expr)) abort()
-// RUN: clang-cc %s
+// RUN: clang -cc1 %s
// TODO: We don't support rewrite of method definitions
@interface Intf
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
@protocol NSObject
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef struct { int y; } Abstract;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface NSObject {}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
typedef int NSInteger;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
- im0 { int a; return 0; // expected-error{{missing context for method declaration}}
// expected-error{{expected '}'}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Foo
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
#define NULL (void*)0
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface A
- (void) setMoo: (int) x; // expected-note {{previous definition is here}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol P
- (void) doSomethingInProtocol: (float) x; // expected-note {{previous definition is here}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface MyClass1
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface MyClass
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface INTF
- (void) meth;
-// RUN: clang-cc %s -verify -fsyntax-only
+// RUN: clang -cc1 %s -verify -fsyntax-only
- (void)compilerTestAgainst; // expected-error {{missing context for method declaration}}
void xx(); // expected-error {{expected method body}}
-// RUN: clang-cc %s -verify -fsyntax-only
+// RUN: clang -cc1 %s -verify -fsyntax-only
@interface Subclass
+ (int)magicNumber;
-// RUN: clang-cc -triple i386-apple-darwin9 -fsyntax-only -verify %s
+// RUN: clang -cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s
@interface Subtask
{
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
// radar 7211563
@interface X
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol CYCdef
- (int)name;
-// RUN: clang-cc -triple x86_64-apple-darwin10 -fsyntax-only -verify %s
+// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fsyntax-only -verify %s
// This program tests that if class implements the forwardInvocation method, then
// every method possible is implemented in the class and should not issue
// warning of the "Method definition not found" kind. */
-// RUN: clang-cc -fblocks -fsyntax-only -verify %s
+// RUN: clang -cc1 -fblocks -fsyntax-only -verify %s
@class NSObject;
-// RUN: clang-cc -fblocks -fsyntax-only -verify %s
+// RUN: clang -cc1 -fblocks -fsyntax-only -verify %s
@interface NSObject
- (id)self;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef struct CGColor * __attribute__ ((NSObject)) CGColorRef;
static int count;
-// RUN: clang-cc -Wsemicolon-before-method-body %s -verify -fsyntax-only
+// RUN: clang -cc1 -Wsemicolon-before-method-body %s -verify -fsyntax-only
#define nil 0 /* id of Nil instance */
-// RUN: clang-cc -triple i386-apple-darwin9 -fobjc-gc -fsyntax-only -verify %s
+// RUN: clang -cc1 -triple i386-apple-darwin9 -fobjc-gc -fsyntax-only -verify %s
@interface INTF @end
extern INTF* p2;
-// RUN: clang-cc -triple i386-apple-darwin9 -fsyntax-only -fobjc-gc -verify %s
+// RUN: clang -cc1 -triple i386-apple-darwin9 -fsyntax-only -fobjc-gc -verify %s
struct S {
__weak id p; // expected-warning {{__weak attribute cannot be specified on a field declaration}}
};
-// RUN: clang-cc -fsyntax-only -Wreadonly-setter-attrs -verify %s -fblocks
+// RUN: clang -cc1 -fsyntax-only -Wreadonly-setter-attrs -verify %s -fblocks
// Check property attribute consistency.
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface NSSound
@end
-// RUN: clang-cc -fsyntax-only -Wreadonly-setter-attrs -verify %s
+// RUN: clang -cc1 -fsyntax-only -Wreadonly-setter-attrs -verify %s
@protocol P0
@property(readonly,assign) id X; // expected-warning {{property attributes 'readonly' and 'assign' are mutually exclusive}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface NSObject
+ alloc;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Tester
@property char PropertyAtomic_char;
-// RUN: clang-cc -verify %s
+// RUN: clang -cc1 -verify %s
@interface I
{
-// RUN: clang-cc -verify %s
+// RUN: clang -cc1 -verify %s
@interface Object
@end
-// RUN: clang-cc -verify %s
+// RUN: clang -cc1 -verify %s
@protocol P1 @end
@protocol P2 @end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
# 1 "<command line>"
# 1 "/System/Library/Frameworks/Foundation.framework/Headers/Foundation.h" 1 3
typedef signed char BOOL;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
typedef struct _NSZone NSZone;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
typedef unsigned int NSUInteger;
typedef struct _NSZone NSZone;
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
// rdar://5967199
typedef signed char BOOL;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
@protocol NSObject - (BOOL)isEqual:(id)object; @end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Object
+ (id)new;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
// Test that a property can be synthesize in a category
// implementation with no error.
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol P
@property(readonly) int X;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface IDELogNavigator
{
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface A
-(int) x;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface AddressMyProperties
{
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface I {
int Y;
-// RUN: clang-cc %s -fsyntax-only -verify
+// RUN: clang -cc1 %s -fsyntax-only -verify
// <rdar://problem/6497242> Inherited overridden protocol declared objects don't work
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
// Test that arithmatic types on property and its ivar have exact match.
@interface Test4
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface SSyncCEList
{
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
// PR3234
-// RUN: clang-cc -fsyntax-only -fobjc-nonfragile-abi -verify %s
+// RUN: clang -cc1 -fsyntax-only -fobjc-nonfragile-abi -verify %s
typedef signed char BOOL;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Object
-// RUN: clang-cc -fsyntax-only -Werror -verify %s
+// RUN: clang -cc1 -fsyntax-only -Werror -verify %s
@interface MyClass {
const char *_myName;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface A
-(float) x; // expected-note {{declared at}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface I0
@property(readonly) int x;
-// RUN: clang-cc -triple i386-apple-darwin9 -fsyntax-only -verify %s
+// RUN: clang -cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s
@interface foo
@property(nonatomic) int foo __attribute__((weak_import));
-// RUN: clang-cc -triple i386-apple-darwin9 -fsyntax-only -verify %s
+// RUN: clang -cc1 -triple i386-apple-darwin9 -fsyntax-only -verify %s
@interface I
{
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
// rdar://5986251
@protocol SomeProtocol
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
__attribute ((unavailable))
@protocol FwProto; // expected-note{{marked unavailable}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol fproto;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@class Protocol;
-// RUN: clang-cc -verify %s
+// RUN: clang -cc1 -verify %s
@interface FF
- (void) Meth;
-// RUN: clang-cc -verify %s
+// RUN: clang -cc1 -verify %s
@protocol P
@end
-// RUN: clang-cc -pedantic -fsyntax-only -verify %s
+// RUN: clang -cc1 -pedantic -fsyntax-only -verify %s
@protocol MyProto1
@end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol P0
-bar;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface NSObject @end
@protocol ProtocolA
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol NSObject
- retain;
- release;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
#include <stddef.h>
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface NSObject @end
@protocol XCElementP @end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface INTF1
@required // expected-error {{directive may only be specified in protocols only}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
// <rdar://problem/6211479>
typedef int T[2];
-// RUN: clang-cc -std=gnu99 -fsyntax-only -verify %s
+// RUN: clang -cc1 -std=gnu99 -fsyntax-only -verify %s
void f0(restrict id a0) {}
-// RUN: clang-cc %s -fsyntax-only -verify -Wmissing-noreturn
+// RUN: clang -cc1 %s -fsyntax-only -verify -Wmissing-noreturn
int test1() {
id a;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@class A, B, C;
-// RUN: clang-cc -verify %s
+// RUN: clang -cc1 -verify %s
@interface Lancelot @end
@implementation Lancelot
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Foo
- (char*) foo;
-// RUN: clang-cc %s -fsyntax-only
+// RUN: clang -cc1 %s -fsyntax-only
@interface NSObject
+ alloc;
-// RUN: clang-cc -fobjc-nonfragile-abi -verify -fsyntax-only %s
+// RUN: clang -cc1 -fobjc-nonfragile-abi -verify -fsyntax-only %s
@class I0;
-// RUN: clang-cc -triple i386-unknown-unknown -ast-print %s
-// RUN: clang-cc -triple x86_64-apple-darwin10 -ast-print %s
+// RUN: clang -cc1 -triple i386-unknown-unknown -ast-print %s
+// RUN: clang -cc1 -triple x86_64-apple-darwin10 -ast-print %s
@interface current
{
-// RUN: clang-cc %s -verify -fsyntax-only
+// RUN: clang -cc1 %s -verify -fsyntax-only
struct some_struct;
-// RUN: clang-cc %s -verify -fsyntax-only
-// RUN: clang-cc %s -verify -fsyntax-only -DDECLAREIT
+// RUN: clang -cc1 %s -verify -fsyntax-only
+// RUN: clang -cc1 %s -verify -fsyntax-only -DDECLAREIT
// a declaration of NSConstantString is not required.
#ifdef DECLAREIT
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
typedef unsigned int NSUInteger;
@class NSInvocation, NSMethodSignature, NSCoder, NSString, NSEnumerator;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface SStoreNodeInfo
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface B
+(int) classGetter;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Foo
- iMethod;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface PBXTrackableTaskManager @end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface TestClass
{
-// RUN: clang-cc -fsyntax-only -fobjc-nonfragile-abi -verify %s
+// RUN: clang -cc1 -fsyntax-only -fobjc-nonfragile-abi -verify %s
@interface I
{
}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
typedef struct _NSZone NSZone;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
typedef unsigned int NSUInteger;
typedef struct _NSZone NSZone;
-// RUN: clang %s -verify -fsyntax-only
+// RUN: clang -cc1 %s -verify -fsyntax-only
@class NSString;
extern void NSLog(NSString *format, ...) __attribute__((format(__NSString__, 1, 2)));
-// RUN: clang-cc -fsyntax-only -Wundeclared-selector -verify %s
+// RUN: clang -cc1 -fsyntax-only -Wundeclared-selector -verify %s
typedef struct objc_selector *SEL;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface _Child
+ (int) flashCache;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol P1
- (void) P1proto;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@class SUPER, Y;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@protocol p1, p4;
@protocol p2 @end
-// RUN: clang-cc %s -verify -Wunused -fsyntax-only
+// RUN: clang -cc1 %s -verify -Wunused -fsyntax-only
int printf(const char *, ...);
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
#include <stdarg.h>
-// RUN: clang-cc -fobjc-gc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fobjc-gc -fsyntax-only -verify %s
@protocol NSCopying @end
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface Object
- (void)foo;
-// RUN: clang-cc -fsyntax-only -Wsuper-class-method-mismatch -verify %s
+// RUN: clang -cc1 -fsyntax-only -Wsuper-class-method-mismatch -verify %s
@interface Root
-(void) method_r: (char)ch : (float*)f1 : (int*) x; // expected-note {{previous declaration is here}}
-// RUN: clang-cc -triple i386-apple-darwin9 -fsyntax-only -fobjc-gc -verify %s
+// RUN: clang -cc1 -triple i386-apple-darwin9 -fsyntax-only -fobjc-gc -verify %s
struct S {
__weak id w; // expected-warning {{__weak attribute cannot be specified on a field declaration}}
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
typedef signed char BOOL;
typedef unsigned int NSUInteger;
-// RUN: clang-cc -fsyntax-only -verify %s
+// RUN: clang -cc1 -fsyntax-only -verify %s
@interface MessageStore
@property (assign, readonly) int P;