зеркало из https://github.com/microsoft/clang-1.git
Make tests use the new clang -cc1 flag.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@91303 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Родитель
ca6180f069
Коммит
01ed063edb
|
@ -23,13 +23,13 @@ void func() {
|
|||
Foo *obj = [Foo new];
|
||||
[obj xx];
|
||||
}
|
||||
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:23:19 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
|
||||
// RUN: clang -cc1 -fsyntax-only -code-completion-at=%s:23:19 %s -o - | FileCheck -check-prefix=CHECK-CC1 %s
|
||||
// CHECK-CC1: categoryClassMethod : 0
|
||||
// CHECK-CC1: classMethod1:withKeyword: : 0
|
||||
// CHECK-CC1: classMethod2 : 0
|
||||
// CHECK-CC1: new : 0
|
||||
// CHECK-CC1: protocolClassMethod : 0
|
||||
// RUN: clang-cc -fsyntax-only -code-completion-at=%s:24:8 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
|
||||
// RUN: clang -cc1 -fsyntax-only -code-completion-at=%s:24:8 %s -o - | FileCheck -check-prefix=CHECK-CC2 %s
|
||||
// CHECK-CC2: categoryInstanceMethod : 0
|
||||
// CHECK-CC2: instanceMethod1 : 0
|
||||
// CHECK-CC2: protocolInstanceMethod : 0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -emit-llvm -o %t %s
|
||||
// RUN: clang -cc1 -emit-llvm -o %t %s
|
||||
|
||||
@protocol P0
|
||||
@end
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -S -g -o %t.s %s
|
||||
// RUN: clang -cc1 -S -g -o %t.s %s
|
||||
|
||||
// FIXME: This test case can be removed at some point (since it will
|
||||
// no longer effectively test anything). The reason it was causing
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc %s -emit-llvm -o -
|
||||
// RUN: clang -cc1 %s -emit-llvm -o -
|
||||
|
||||
@interface I0 @end
|
||||
@implementation I0
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -triple x86_64-apple-darwin9 -emit-llvm %s -o -
|
||||
// RUN: clang -cc1 -triple x86_64-apple-darwin9 -emit-llvm %s -o -
|
||||
|
||||
void f0(id x) {
|
||||
@synchronized (x) {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang-cc -fsyntax-only %s
|
||||
// RUN: clang-cc -ast-print %s
|
||||
// RUN: clang-cc -ast-dump %s
|
||||
// RUN: clang -cc1 -fsyntax-only %s
|
||||
// RUN: clang -cc1 -ast-print %s
|
||||
// RUN: clang -cc1 -ast-dump %s
|
||||
|
||||
#include "objc-language-features.inc"
|
||||
|
|
|
@ -1,3 +1,3 @@
|
|||
// RUN: clang-cc -triple i386-unknown-unknown -fgnu-runtime -emit-llvm -o %t %s
|
||||
// RUN: clang -cc1 -triple i386-unknown-unknown -fgnu-runtime -emit-llvm -o %t %s
|
||||
|
||||
#include "objc-language-features.inc"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -emit-llvm -o %t %s
|
||||
// RUN: clang-cc -g -emit-llvm -o %t %s
|
||||
// RUN: clang -cc1 -emit-llvm -o %t %s
|
||||
// RUN: clang -cc1 -g -emit-llvm -o %t %s
|
||||
|
||||
#include "objc-language-features.inc"
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -parse-noop %s
|
||||
// RUN: clang-cc -parse-print-callbacks %s
|
||||
// RUN: clang -cc1 -parse-noop %s
|
||||
// RUN: clang -cc1 -parse-print-callbacks %s
|
||||
|
||||
#include "objc-language-features.inc"
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang-cc -pedantic -fixit %s -o %t
|
||||
// RUN: clang-cc -pedantic -x objective-c %t -verify
|
||||
// RUN: clang -cc1 -pedantic -fixit %s -o %t
|
||||
// RUN: clang -cc1 -pedantic -x objective-c %t -verify
|
||||
|
||||
/* This is a test of the various code modification hints that are
|
||||
provided as part of warning or extension diagnostics. All of the
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
|
||||
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
|
||||
// RUN: c-index-test -test-file-scan %t.ast %s | FileCheck -check-prefix=scan %s
|
||||
// RUN: c-index-test -test-load-tu %t.ast local | FileCheck -check-prefix=load %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
|
||||
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
|
||||
// RUN: c-index-test -test-file-scan %t.ast %s | FileCheck -check-prefix=scan %s
|
||||
// RUN: c-index-test -test-load-tu %t.ast local | FileCheck -check-prefix=load %s
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
|
||||
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
|
||||
// RUN: c-index-test -test-load-tu %t.ast scan-function | FileCheck %s
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
|
||||
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
|
||||
// RUN: c-index-test -test-load-tu %t.ast all | FileCheck %s
|
||||
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
|
||||
// RUN: clang -cc1 -triple x86_64-apple-darwin10 -fobjc-nonfragile-abi -fblocks -emit-pch -x objective-c %s -o %t.ast
|
||||
// RUN: c-index-test -test-file-scan %t.ast %s | FileCheck %s
|
||||
@interface Foo
|
||||
{
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang-cc -emit-pch %S/Inputs/t1.m -o %t1.m.ast
|
||||
// RUN: clang-cc -emit-pch %S/Inputs/t2.m -o %t2.m.ast
|
||||
// RUN: clang -cc1 -emit-pch %S/Inputs/t1.m -o %t1.m.ast
|
||||
// RUN: clang -cc1 -emit-pch %S/Inputs/t2.m -o %t2.m.ast
|
||||
|
||||
// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/t1.m:12:12 -print-decls > %t
|
||||
// RUN: cat %t | count 2
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
// RUN: clang-cc -emit-pch %S/Inputs/t1.m -o %t1.m.ast
|
||||
// RUN: clang-cc -emit-pch %S/Inputs/t2.m -o %t2.m.ast
|
||||
// RUN: clang -cc1 -emit-pch %S/Inputs/t1.m -o %t1.m.ast
|
||||
// RUN: clang -cc1 -emit-pch %S/Inputs/t2.m -o %t2.m.ast
|
||||
|
||||
// RUN: index-test %t1.m.ast %t2.m.ast -point-at %S/Inputs/objc.h:5:13 -print-refs > %t
|
||||
// RUN: cat %t | count 1
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Test this without pch.
|
||||
// RUN: clang-cc -include %S/method_pool.h -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -include %S/method_pool.h -fsyntax-only -verify %s
|
||||
|
||||
// Test with pch.
|
||||
// RUN: clang-cc -x objective-c -emit-pch -o %t %S/method_pool.h
|
||||
// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -x objective-c -emit-pch -o %t %S/method_pool.h
|
||||
// RUN: clang -cc1 -include-pch %t -fsyntax-only -verify %s
|
||||
|
||||
int message_id(id x) {
|
||||
return [x instMethod:17]; // expected-warning{{multiple methods}}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Test this without pch.
|
||||
// RUN: clang-cc -fblocks -include %S/objc_exprs.h -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -fblocks -include %S/objc_exprs.h -fsyntax-only -verify %s
|
||||
|
||||
// Test with pch.
|
||||
// RUN: clang-cc -x objective-c-header -emit-pch -fblocks -o %t %S/objc_exprs.h
|
||||
// RUN: clang-cc -fblocks -include-pch %t -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -x objective-c-header -emit-pch -fblocks -o %t %S/objc_exprs.h
|
||||
// RUN: clang -cc1 -fblocks -include-pch %t -fsyntax-only -verify %s
|
||||
|
||||
// Expressions
|
||||
int *A1 = (objc_string)0; // expected-warning {{aka 'id'}}
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Test this without pch.
|
||||
// RUN: clang-cc -include %S/objc_import.h -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -include %S/objc_import.h -fsyntax-only -verify %s
|
||||
|
||||
// Test with pch.
|
||||
// RUN: clang-cc -x objective-c -emit-pch -o %t %S/objc_import.h
|
||||
// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -x objective-c -emit-pch -o %t %S/objc_import.h
|
||||
// RUN: clang -cc1 -include-pch %t -fsyntax-only -verify %s
|
||||
|
||||
#import "objc_import.h"
|
||||
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Test this without pch.
|
||||
// RUN: clang-cc -include %S/objc_methods.h -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -include %S/objc_methods.h -fsyntax-only -verify %s
|
||||
|
||||
// Test with pch.
|
||||
// RUN: clang-cc -x objective-c -emit-pch -o %t %S/objc_methods.h
|
||||
// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -x objective-c -emit-pch -o %t %S/objc_methods.h
|
||||
// RUN: clang -cc1 -include-pch %t -fsyntax-only -verify %s
|
||||
|
||||
void func() {
|
||||
TestPCH *xx;
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
// Test this without pch.
|
||||
// RUN: clang-cc -include %S/objc_property.h -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -include %S/objc_property.h -fsyntax-only -verify %s
|
||||
|
||||
// Test with pch.
|
||||
// RUN: clang-cc -x objective-c -emit-pch -o %t %S/objc_property.h
|
||||
// RUN: clang-cc -include-pch %t -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -x objective-c -emit-pch -o %t %S/objc_property.h
|
||||
// RUN: clang -cc1 -include-pch %t -fsyntax-only -verify %s
|
||||
|
||||
void func() {
|
||||
TestProperties *xx = [TestProperties alloc];
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -fobjc-nonfragile-abi %s
|
||||
// RUN: clang -cc1 -fobjc-nonfragile-abi %s
|
||||
#ifndef __has_feature
|
||||
#error Should have __has_feature
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -triple i386-unknown-unknown %s
|
||||
// RUN: clang -cc1 -triple i386-unknown-unknown %s
|
||||
#ifndef __has_feature
|
||||
#error Should have __has_feature
|
||||
#endif
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc %s -fsyntax-only -verify -pedantic
|
||||
// RUN: clang -cc1 %s -fsyntax-only -verify -pedantic
|
||||
|
||||
#import <stdint.h> // no warning on #import in objc mode.
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc %s -fsyntax-only -verify -fblocks
|
||||
// RUN: clang -cc1 %s -fsyntax-only -verify -fblocks
|
||||
|
||||
@interface Whatever
|
||||
- copy;
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -fsyntax-only %s -verify
|
||||
// RUN: clang -cc1 -fsyntax-only %s -verify
|
||||
// Test case for:
|
||||
// <rdar://problem/6248119> @finally doesn't introduce a new scope
|
||||
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -fsyntax-only -verify %s
|
||||
// XFAIL: *
|
||||
|
||||
template<typename T> struct Member0 {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
// RUN: clang-cc -fsyntax-only -verify %s
|
||||
// RUN: clang -cc1 -fsyntax-only -verify %s
|
||||
|
||||
// Obj-C string literal expressions
|
||||
template <typename T> struct StringTest {
|
||||
|
|
Загрузка…
Ссылка в новой задаче