1 change: 0 additions & 1 deletion clang/test/CodeGen/exceptions.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wno-strict-prototypes -emit-llvm -o - %s -fexceptions -fblocks | FileCheck %s
// RUN: %clang_cc1 -triple armv7-apple-unknown -Wno-strict-prototypes -emit-llvm -o - %s -fexceptions -exception-model=sjlj -fblocks | FileCheck %s -check-prefix=CHECK-ARM

// rdar://problem/8621849
void test1(void) {
extern void test1_helper(void (^)(int));

Expand Down
3 changes: 0 additions & 3 deletions clang/test/CodeGen/exprs.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ void eMaisUma(void) {
return;
}

// rdar://6520707
void f0(void (*fp)(void), void (*fp2)(void)) {
int x = fp - fp2;
}
Expand Down Expand Up @@ -105,7 +104,6 @@ int f8(void) {
return ({ foo(); }).Y;
}

// rdar://6880558
struct S;
struct C {
int i;
Expand All @@ -120,7 +118,6 @@ void f10(void) {
__builtin_sin(0);
}

// rdar://7530813
// CHECK-LABEL: define{{.*}} i32 @f11
int f11(long X) {
int A[100];
Expand Down
4 changes: 2 additions & 2 deletions clang/test/CodeGen/ext-vector.c
Original file line number Diff line number Diff line change
Expand Up @@ -113,8 +113,8 @@ void test6(float4 *ap, float4 *bp, float c) {
a *= c;
a /= c;

// Vector comparisons can sometimes crash the x86 backend: rdar://6326239,
// reject them until the implementation is stable.
// Vector comparisons can sometimes crash the x86 backend, reject them until
// the implementation is stable.
#if 0
int4 cmp;
cmp = a < b;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/func-aligned.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin %s -emit-llvm -o - | FileCheck %s

// rdar://7270273
void foo(void) __attribute__((aligned (64)));
void foo(void) {
// CHECK: define{{.*}} void @foo() {{.*}} align 64
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/func-in-block.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fblocks -emit-llvm -o - %s | FileCheck %s
// rdar: // 7860965

extern void PRINTF(const char *);
extern void B(void (^)(void));
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/function-attributes.c
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void f13(void) __attribute__((pure)) __attribute__((const));
void f13(void){}


// <rdar://problem/7102668> [irgen] clang isn't setting the optsize bit on functions
// [irgen] clang isn't setting the optsize bit on functions
// CHECK-LABEL: define{{.*}} void @f15
// CHECK: [[NUW]]
// CHECK: {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/functions.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ int g(int i) {
return g(i);
}

// rdar://6110827
typedef void T(void);
void test3(T f) {
f();
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/global-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,5 @@ char yuv_types[4][6]= {"4:0:0","4:2:0","4:2:2","4:4:4"};
// NOTE: tentative definitions are processed at the end of the translation unit.

// This shouldn't be emitted as common because it has an explicit section.
// rdar://7119244
// CHECK: @b ={{.*}} global i32 0, section "foo"
int b __attribute__((section("foo")));
1 change: 0 additions & 1 deletion clang/test/CodeGen/implicit-arg.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 %s -emit-llvm -o -
// RUN: %clang_cc1 %s -emit-llvm -O1 -o -
// rdar://6518089

static int bar();
void foo() {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/init.c
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@ vec3 f5(vec3 value) {
}};
}

// rdar://problem/8154689
void f6(void) {
int x;
long ids[] = { (long) &x };
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/inline.c
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@ void (*P1)() = gnu_inline;
extern __inline __attribute__((gnu_inline)) void gnu_ei_inline() {}
void (*P)() = gnu_ei_inline;

// <rdar://problem/6818429>
int test1();
__inline int test1() { return 4; }
__inline int test2() { return 5; }
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/integer-overflow.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@


// Tests for signed integer overflow stuff.
// rdar://7432000 rdar://7221421
void test1(void) {
// DEFAULT-LABEL: define{{.*}} void @test1
// WRAPV-LABEL: define{{.*}} void @test1
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGen/libcalls-fno-builtin.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,6 @@
// RUN: %clang_cc1 -S -O3 -fno-builtin -o - %s | FileCheck --check-prefix=ASM %s
// RUN: %clang_cc1 -S -O3 -fno-builtin-ceil -o - %s | FileCheck --check-prefix=ASM-INDIV %s

// rdar://10551066

typedef __SIZE_TYPE__ size_t;
typedef struct FILE FILE;

Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGen/ms-inline-asm.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -x c++ %s -triple i386-apple-darwin10 -fasm-blocks -emit-llvm -o - -std=c++11 | FileCheck %s

// rdar://13645930

struct Foo {
static int *ptr;
static int a, b;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/ms_struct-bitfield-1.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-apple-darwin9 %s
// rdar://8823265

#define ATTR __attribute__((__ms_struct__))

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/ms_struct-bitfield-2.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-apple-darwin9 %s
// rdar://8823265

#define ATTR __attribute__((__ms_struct__))

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/ms_struct-bitfield-3.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm-only -triple i386-apple-darwin9 %s
// rdar://8823265

#define ATTR __attribute__((__ms_struct__))

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/ms_struct-bitfield-init.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm-only -triple x86_64-apple-darwin9 %s
// rdar://8823265

extern void abort(void);
#define ATTR __attribute__((__ms_struct__))
Expand Down
5 changes: 1 addition & 4 deletions clang/test/CodeGen/ms_struct-bitfield.c
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// RUN: %clang_cc1 -emit-llvm -o - -triple x86_64-apple-darwin9 %s | FileCheck %s
// RUN: %clang_cc1 -emit-llvm -o - -triple thumbv7-apple-ios -target-abi apcs-gnu %s | FileCheck %s -check-prefix=CHECK-ARM

// rdar://8823265

// Note that we're declaring global variables with these types,
// triggering both Sema and IRGen struct layout.

Expand Down Expand Up @@ -149,8 +147,7 @@ int s10 = sizeof(t10);
// CHECK: @s10 ={{.*}} global i32 16
// CHECK-ARM: @s10 ={{.*}} global i32 8

// rdar://16041826 - ensure that ms_structs work correctly on a
// !useBitFieldTypeAlignment() target
// ensure that ms_structs work correctly on a !useBitFieldTypeAlignment() target
struct {
unsigned int a : 31;
unsigned int b : 2;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGen/ms_struct-pack.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm-only -triple i386-apple-darwin9 -fdump-record-layouts %s | FileCheck %s
// rdar://8823265

#pragma pack(1)
struct _one_ms {
Expand Down Expand Up @@ -123,7 +122,6 @@ typedef struct _eight_ms eight_ms;

static int a8[(sizeof(eight_ms) == 48) - 1];

// rdar://15926990
#pragma pack(2)
struct test0 {
unsigned long a : 8;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/no-opt-volatile-memcpy.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple=x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
// rdar://11861085

struct s {
char filler [128];
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/noinline.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// Make sure -fno-inline-functions is behaving correctly.
// rdar://10972766

// RUN: %clang_cc1 -O3 -fno-inline -fno-inline-functions -emit-llvm %s -o - | FileCheck -check-prefix=NOINLINE %s

Expand Down
3 changes: 0 additions & 3 deletions clang/test/CodeGen/packed-nest-unpacked.c
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ struct Y g;
void f(struct X);
struct X foo(void);

// <rdar://problem/10463337>
struct X test1(void) {
// CHECK: @test1
// CHECK: call void @llvm.memcpy.p0.p0.i64(ptr {{.*}}, ptr align 1 getelementptr inbounds (%struct.Y, ptr @g, i32 0, i32 1), i64 24, i1 false)
Expand All @@ -25,7 +24,6 @@ void test3(struct X a) {
g.y = a;
}

// <rdar://problem/10530444>
void test4(void) {
// CHECK: @test4
// CHECK: call void @llvm.memcpy.p0.p0.i64(ptr {{.*}}, ptr align 1 getelementptr inbounds (%struct.Y, ptr @g, i32 0, i32 1), i64 24, i1 false)
Expand All @@ -39,7 +37,6 @@ int test5(void) {
return g.y.x[0];
}

// <rdar://problem/11220251>
void test6(void) {
// CHECK: @test6
// CHECK: call void @llvm.memcpy.p0.p0.i64(ptr align 1 getelementptr inbounds (%struct.Y, ptr @g, i32 0, i32 1), ptr align 4 %{{.*}}, i64 24, i1 false)
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/pascal-wchar-string.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm -o - %s -fpascal-strings -fwchar-type=short -fno-signed-wchar | FileCheck %s
// rdar://8020384

#include <stddef.h>

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/pointer-to-int.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ int test(void* i)
return (int)i;
}

// rdar://6093986
int test2(void) {
float x[2];
return x;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGen/pragma-pack-2.c
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix CHECK-X64 %s
// CHECK-X64: %struct.s0 = type <{ i64, i64, i32, [12 x i32] }>
// CHECK-X64: %struct.s1 = type { [15 x i32], %struct.s0 }

// rdar://problem/7095436
#pragma pack(4)

struct s0 {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/pragma-pack-3.c
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 %s -emit-llvm -o - | FileCheck -check-prefix CHECK-X64 %s
// CHECK-X64: %union.command = type <{ ptr, [2 x i8] }>

// <rdar://problem/7184250>
#pragma pack(push, 2)
typedef union command {
void *windowRef;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/private-extern-redef.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-darwin-apple -emit-llvm -o - %s | FileCheck %s
// rdar://9609649

__private_extern__ const int I;
__private_extern__ const int J = 927;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/redef-ext-inline.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm %s -o - -std=gnu89
// rdar://7208839

extern inline int f1 (void) {return 1;}
int f3 (void) {return f1();}
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/sanitize-blocks.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// Awkward interactions of sanitizers with blocks.

// rdar://22071955
const char *TheString = "Hello, world!";
const char *(^getString)(void) = ^{
return TheString;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/struct-init.c
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@ struct GLGENH ABHFBF = {1};
typedef __attribute__(( ext_vector_type(2) )) unsigned int uint2;
typedef __attribute__(( __vector_size__(8) )) unsigned int __neon_uint32x2_t;

// rdar://8183908
typedef unsigned int uint32_t;
typedef __attribute__((neon_vector_type(2))) uint32_t uint32x2_t;
void foo(void) {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGen/switch-dce.c
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s

// PR9322 and rdar://6970405
// PR9322

// CHECK: @test1
// CHECK-NOT: switch
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/switch.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,6 @@ int f13(unsigned x) {

// Don't delete a basic block that we want to introduce later references to.
// This isn't really specific to switches, but it's easy to show with them.
// rdar://problem/8837067
int f14(int x) {
switch (x) {

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/transparent-union-redecl.c
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// Test that different order of declarations is acceptable and that
// implementing different redeclarations is acceptable.
// rdar://problem/34949329

typedef union {
int i;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/union-align.c
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | grep load | grep "4 x float" | not grep "align 4"
// RUN: %clang_cc1 -triple x86_64-unknown-linux-gnu -emit-llvm %s -o - | grep load | grep "4 x float" | grep "align 16"
// PR3432
// rdar://6536377

typedef float __m128 __attribute__ ((__vector_size__ (16)));

Expand Down
4 changes: 2 additions & 2 deletions clang/test/CodeGen/unwind-attr.c
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,14 @@ int test0(void) {
return opaque();
}

// <rdar://problem/8087431>: locally infer nounwind at -O0
// locally infer nounwind at -O0
// CHECK: define{{.*}} [[INT:i.*]] @test1() [[NUW:#[0-9]+]] {
// CHECK-NOEXC: define{{.*}} [[INT:i.*]] @test1() [[NUW]] {
int test1(void) {
return 0;
}

// <rdar://problem/8283071>: not for weak functions
// not for weak functions
// CHECK: define weak{{.*}} [[INT:i.*]] @test2() [[TF]] {
// CHECK-NOEXC: define weak{{.*}} [[INT:i.*]] @test2() [[NUW]] {
__attribute__((weak)) int test2(void) {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/utf16-cfstrings.c
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s
// <rdar://problem/10655949>

// CHECK: @.str = private unnamed_addr constant [9 x i16] [i16 252, i16 98, i16 101, i16 114, i16 104, i16 117, i16 110, i16 100, i16 0], section "__TEXT,__ustring", align 2

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGen/vector-alignment.c
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@
// RUN: -emit-llvm -o - %s | FileCheck %s --check-prefix=ALL --check-prefix=AVX512
// RUN: %clang_cc1 -w -triple i386-apple-darwin10 -target-feature +avx512f \
// RUN: -emit-llvm -o - %s | FileCheck %s --check-prefix=ALL --check-prefix=AVX512
// rdar://11759609

// At or below target max alignment with no aligned attribute should align based
// on the size of vector.
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGen/visibility.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,6 @@ int f_def(void) {
struct Test1 { int field; };
void __attribute__((visibility("default"))) test1(struct Test1 *v) { }

// rdar://problem/8595231
// CHECK-DEFAULT-LABEL: define{{.*}} void @test2()
// CHECK-PROTECTED-LABEL: define{{.*}} void @test2()
// CHECK-HIDDEN-LABEL: define{{.*}} void @test2()
Expand All @@ -68,7 +67,6 @@ __private_extern__ void test3(void) {}
extern int test4;
__private_extern__ int test4 = 10;

// rdar://12399248
// CHECK-DEFAULT-LABEL: define hidden void @test5()
// CHECK-PROTECTED-LABEL: define hidden void @test5()
// CHECK-HIDDEN-LABEL: define hidden void @test5()
Expand Down
3 changes: 0 additions & 3 deletions clang/test/CodeGen/vla.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ void g(int count) {
int (*b)[][count];
}

// rdar://8403108
// CHECK-LABEL: define{{.*}} void @f_8403108
void f_8403108(unsigned x) {
// CHECK: call ptr @llvm.stacksave()
Expand Down Expand Up @@ -74,7 +73,6 @@ void test1(void) {
function(1, bork[2]);
}

// rdar://8476159
static int GLOB;
int test2(int n)
{
Expand Down Expand Up @@ -144,7 +142,6 @@ int test4(unsigned n, char (*p)[n][n+1][6]) {
return p2 - p;
}

// rdar://11485774
void test5(void)
{
// CHECK-LABEL: define{{.*}} void @test5(
Expand Down
3 changes: 1 addition & 2 deletions clang/test/CodeGenCXX/2008-01-12-VecInit.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm %s -o -
// rdar://5685492

//
typedef int __attribute__((vector_size(16))) v;
v vt = {1, 2, 3, 4};
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/2008-05-07-CrazyOffsetOf.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple=x86_64-unknown-linux -emit-llvm %s -o - | FileCheck %s
// rdar://5914926

struct bork {
struct bork *next_local;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/2009-08-05-ZeroInitWidth.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm %s -o -
// rdar://7114564
struct A {
unsigned long long : (sizeof(unsigned long long) * 8) - 16;
};
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/2009-08-11-VectorRetTy.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm -o /dev/null
// <rdar://problem/7096460>
typedef void (*Func) ();
typedef long long m64 __attribute__((__vector_size__(8), __may_alias__));
static inline m64 __attribute__((__always_inline__, __nodebug__)) _mm_set1_pi16() {}
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/2009-10-27-crash.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null
// Radar 7328944

typedef struct
{
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/2012-03-16-StoreAlign.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm -o - -triple x86_64-apple-darwin %s | FileCheck %s
// <rdar://problem/11043589>

struct Length {
Length(double v) {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/align-avx-complete-objects.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 %std_cxx11-14 %s -O0 -triple=x86_64-apple-darwin -target-feature +avx2 -fmax-type-align=16 -emit-llvm -o - -Werror | FileCheck %s --check-prefixes=CHECK,PRE17
// RUN: %clang_cc1 %std_cxx17- %s -O0 -triple=x86_64-apple-darwin -target-feature +avx2 -fmax-type-align=16 -emit-llvm -o - -Werror | FileCheck %s --check-prefixes=CHECK,CXX17
// rdar://16254558

typedef float AVX2Float __attribute__((__vector_size__(32)));

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s

// rdar://8818236
namespace rdar8818236 {
struct S {
char c2;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/apple-kext-guard-variable.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang -target x86_64-apple-darwin10 -S -o %t.s -Wno-stdlibcxx-not-found -mkernel -Xclang -verify %s

// rdar://problem/9143356

int foo();
void test() {
static int y = 0;
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenCXX/apple-kext-linkage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ inline unsigned f(unsigned n) { return n == 0 ? 0 : n + f(n-1); }

unsigned g(unsigned n) { return f(n); }

// rdar://problem/10133200: give explicit instantiations external linkage in kernel mode
// give explicit instantiations external linkage in kernel mode
// CHECK-LABEL: define{{.*}} void @_Z3barIiEvv()
template <typename T> void bar() {}
template void bar<int>();
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/apple-kext-no-staticinit-section.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fapple-kext -fno-rtti -disable-O0-optnone -emit-llvm -o - %s | FileCheck %s
// rdar://8825235
/**
1) Normally, global object construction code ends up in __StaticInit segment of text section
.section __TEXT,__StaticInit,regular,pure_instructions
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/apple-kext.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,6 @@ D::~D() {}
// CHECK: define{{.*}} void @_ZN18testBaseDestructor1DD1Ev({{.*}}) unnamed_addr #[[ATTR1:.*]] align 2 {

// CHECK: define{{.*}} void @_ZN18testBaseDestructor1DD0Ev({{.*}}) unnamed_addr #[[ATTR1]] align 2 {

// rdar://11241230
namespace test0 {
struct A { A(); ~A(); };
A a;
Expand Down
3 changes: 0 additions & 3 deletions clang/test/CodeGenCXX/arm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ class bar : public foo {
};

// The global dtor needs the right calling conv with -fno-use-cxa-atexit
// rdar://7817590
bar baz;

// PR9593
Expand Down Expand Up @@ -245,7 +244,6 @@ namespace test4 {
}
}

// <rdar://problem/8386802>: don't crash
namespace test5 {
struct A {
~A();
Expand Down Expand Up @@ -356,7 +354,6 @@ namespace test8 {
}
}

// rdar://12836470
// Use a larger-than-mandated array cookie when allocating an
// array whose type is overaligned.
namespace test9 {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/arm64-constructor-return.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -triple=arm64-apple-ios7.0.0 -emit-llvm -o - | FileCheck %s
// rdar://12162905

struct S {
S();
Expand Down
4 changes: 1 addition & 3 deletions clang/test/CodeGenCXX/arm64.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: %clang_cc1 %s -triple=arm64-apple-ios -emit-llvm -o - | FileCheck -check-prefix=CHECK-GLOBALS %s

// __cxa_guard_acquire argument is 64-bit
// rdar://11540122
struct A {
A();
};
Expand All @@ -13,7 +12,6 @@ void f() {
}

// ARM64 uses the C++11 definition of POD.
// rdar://12650514
namespace test1 {
// This class is POD in C++11 and cannot have objects allocated in
// its tail-padding.
Expand All @@ -39,7 +37,7 @@ namespace std {
}

// ARM64 uses string comparisons for what would otherwise be
// default-visibility weak RTTI. rdar://12650568
// default-visibility weak RTTI.
namespace test2 {
struct A {
virtual void foo();
Expand Down
4 changes: 1 addition & 3 deletions clang/test/CodeGenCXX/armv7k.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// RUN: %clang_cc1 %s -triple=arm64_32-apple-ios -emit-llvm -o - -target-abi darwinpcs | FileCheck -check-prefix=CHECK-GLOBALS %s

// __cxa_guard_acquire argument is 64-bit
// rdar://11540122
struct A {
A();
};
Expand All @@ -16,7 +15,6 @@ void f() {
}

// ARM64 uses the C++11 definition of POD.
// rdar://12650514
namespace test1 {
// This class is POD in C++11 and cannot have objects allocated in
// its tail-padding.
Expand All @@ -42,7 +40,7 @@ namespace std {
}

// ARM64 uses string comparisons for what would otherwise be
// default-visibility weak RTTI. rdar://12650568
// default-visibility weak RTTI.
namespace test2 {
struct A {
virtual void foo();
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenCXX/asm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ int foo(A);
void bar(A &a)
{
// CHECK: call void asm
asm("" : : "r"(foo(a)) ); // rdar://8540491
asm("" : : "r"(foo(a)) );
// CHECK: call void @_ZN1AD1Ev
}

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenCXX/attr-used.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -emit-llvm -triple %itanium_abi_triple -o - %s | FileCheck %s

// <rdar://problem/8684363>: clang++ not respecting __attribute__((used)) on destructors
// clang++ not respecting __attribute__((used)) on destructors
struct X0 {
// CHECK-DAG: define linkonce_odr {{.*}} @_ZN2X0C1Ev
__attribute__((used)) X0() {}
Expand Down
3 changes: 0 additions & 3 deletions clang/test/CodeGenCXX/block-byref-cxx-objc.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -std=c++11 -emit-llvm -triple %itanium_abi_triple -o - -fblocks -fexceptions | FileCheck %s
// rdar://8594790

struct A {
int x;
Expand Down Expand Up @@ -51,8 +50,6 @@ int testB() {
// CHECK: define linkonce_odr hidden void @__destroy_helper_block_e{{4|8}}_{{20|32}}r{{24|40}}r(

// CHECK: attributes #[[NOUNWIND_ATTR]] = {{{.*}}nounwind{{.*}}}

// rdar://problem/11135650
namespace test1 {
struct A { int x; A(); ~A(); };

Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/blocks-cxx11.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
template <class T> void takeItByValue(T);
void takeABlock(void (^)());

// rdar://problem/11022704
namespace test_int {
void test() {
const int x = 100;
Expand Down Expand Up @@ -81,7 +80,6 @@ namespace test_complex_int_ref_mutable {
}
}

// rdar://13295759
namespace test_block_in_lambda {
void takeBlock(void (^block)());

Expand Down
6 changes: 1 addition & 5 deletions clang/test/CodeGenCXX/blocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ namespace test2 {
// CHECK: call void @_ZN5test21BD1Ev(
}

// rdar://problem/9334739
// Make sure we mark destructors for parameters captured in blocks.
namespace test3 {
struct A {
Expand All @@ -106,7 +105,6 @@ namespace test3 {
}
}

// rdar://problem/9971485
namespace test4 {
struct A {
A();
Expand Down Expand Up @@ -215,8 +213,7 @@ namespace test7 {
}

namespace test8 {
// <rdar://problem/10832617>: failure to capture this after skipping rebuild
// of the 'this' pointer.
// failure to capture this after skipping rebuild of the 'this' pointer.
struct X {
int x;

Expand All @@ -229,7 +226,6 @@ namespace test8 {
template int X::foo<int>();
}

// rdar://13459289
namespace test9 {
struct B {
void *p;
Expand Down
4 changes: 2 additions & 2 deletions clang/test/CodeGenCXX/class-layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -78,8 +78,8 @@ namespace Test6 {
E *e;
}

// <rdar://problem/11324125>: Make sure this doesn't crash. (It's okay
// if we start rejecting it at some point.)
// Make sure this doesn't crash. (It's okay if we start rejecting it at some
// point.)
namespace Test7 {
#pragma pack (1)
class A {};
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/conditional-gnu-ext.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-unknown-unknown -emit-llvm -o - %s | FileCheck %s
// rdar: // 8353567
// pr7726

extern "C" int printf(...);
Expand All @@ -9,7 +8,6 @@ void test0() {
printf("%p\n", (void *)0xdeadbeef ? : (void *)0xaaaaaa);
}

// rdar://8446940
namespace radar8446940 {
extern "C" void abort();

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/copy-assign-volatile-synthesis.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm %s -o - | FileCheck %s
// rdar://9894548

typedef unsigned long word_t;
typedef unsigned long u64_t;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/copy-constructor-synthesis.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,6 @@ void f(B b1) {
// CHECK-NEXT: ret void
}

// rdar://13816940
// Test above because things get weirdly re-ordered.
namespace rdar13816940 {
struct A {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/cxx-block-objects.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -fblocks -triple x86_64-apple-darwin -emit-llvm -o - | FileCheck %s
// rdar://8594790

extern "C" {
extern "C" void *_Block_copy(const void *aBlock);
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/cxx11-special-members.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ void f2(B &x, B &y) {
// CHECK: define {{.*}} @_ZN1BaSEOS_(
// CHECK: call {{.*}} @_ZN1AaSERKS_(

// rdar://18309639 {
template<int> struct C { C() = default; };
struct D {
C<0> c;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/cxx11-trivial-initializer-struct.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// RUN: diff %t-c++11.ll %t-c++17.ll
// RUN: diff %t.ll %t-c++03.ll

// rdar://12897704

struct sAFSearchPos {
unsigned char *pos;
unsigned char count;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/debug-info-byval.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// FIXME: Check IR rather than asm, then triple is not needed.
// RUN: %clang --target=%itanium_abi_triple -g -S %s -o - | FileCheck %s
// Test to check presence of debug info for byval parameter.
// Radar 8350436.
class DAG {
public:
int i;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/debug-info-decl-nested.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// definition of the constructor for OuterClass. The declaration is
// necessary so the backend can emit the DW_AT_specification attribute
// for the definition.
//
// rdar://problem/13116508

class Foo;
class OuterClass
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/debug-info-enum.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ void foo() {
}

namespace test2 {
// rdar://8195980
// CHECK: [[E2]] = !DICompositeType(tag: DW_TAG_enumeration_type, name: "e"
// CHECK-SAME: scope: [[TEST2:![0-9]+]]
// CHECK-SAME: elements: [[TEST1_ENUMS]]
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/debug-info-indirect-field-decl.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin %s -o - | FileCheck %s
//
// Test that indirect field decls are handled gracefully.
// rdar://problem/16348575
//
template <class T, int T::*ptr> class Foo { };

struct Bar {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/debug-info-method-spec.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// FIXME: Check IR rather than asm, then triple is not needed.
// RUN: %clang --target=%itanium_abi_triple -fverbose-asm -g -S %s -o - | grep DW_AT_specification
// Radar 9254491
class A {
public:
void doSomething(int i) { ++i; }
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/debug-info-method2.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -x c++ -debug-info-kind=limited -S -emit-llvm < %s | FileCheck %s
// rdar://10336845
// Preserve type qualifiers in -flimit-debug-info mode.

// CHECK: DW_TAG_const_type
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/debug-info-scope.cpp
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// RUN: %clang_cc1 -debug-info-kind=limited -gno-column-info -std=c++11 -emit-llvm %s -o -| FileCheck %s
//
// Two variables with the same name in subsequent if staments need to be in separate scopes.
//
// rdar://problem/14024005

int src();

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/debug-info-template-fwd.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
// CHECK: !DICompositeType(tag: DW_TAG_structure_type, name: "Derived<int>"
// CHECK-NOT: DIFlagFwdDecl
// CHECK-SAME: ){{$}}
// rdar://problem/15931354
template <class A> class Derived;

template <class A> class Base {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/debug-info-this.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang -emit-llvm -g -S %s -o - | FileCheck %s
// Radar 9239104
class Class
{
public:
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/debug-info-zero-length-arrays.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang -target x86_64-unknown-unknown -fverbose-asm -g -O0 -S -emit-llvm %s -o - | FileCheck %s
// <rdar://problem/12566646>

class A {
int x[];
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/delete-two-arg.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ namespace test2 {
}
}

// rdar://problem/8913519
namespace test3 {
struct A {
int x;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/derived-to-base-conv.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ void test1(Derived bb) {

// Don't crash after devirtualizing a derived-to-base conversion
// to an empty base allocated at offset zero.
// rdar://problem/11993704
class Test2a {};
class Test2b final : public virtual Test2a {};
void test2(Test2b &x) {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/duplicate-mangled-name.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@

#ifdef TEST1

// rdar://15522601
class MyClass {
static void meth();
};
Expand Down
6 changes: 0 additions & 6 deletions clang/test/CodeGenCXX/eh.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,6 @@ void test4() {
// CHECK: call void @__cxa_rethrow() [[NR]]
// CHECK-NEXT: unreachable


// rdar://problem/7696549
namespace test5 {
struct A {
A();
Expand Down Expand Up @@ -172,7 +170,6 @@ namespace test8 {
}

// Constructor function-try-block must rethrow on fallthrough.
// rdar://problem/7696603
namespace test9 {
void opaque();

Expand Down Expand Up @@ -232,7 +229,6 @@ namespace test10 {
}

// __cxa_begin_catch returns pointers by value, even when catching by reference
// <rdar://problem/8212123>
namespace test11 {
void opaque();

Expand Down Expand Up @@ -336,7 +332,6 @@ namespace test13 {
}
}

// rdar://problem/8231514
namespace test14 {
struct A { ~A(); };
struct B { ~B(); };
Expand All @@ -354,7 +349,6 @@ namespace test14 {
}
}

// rdar://problem/8231514
// JumpDests shouldn't get confused by scopes that aren't normal cleanups.
namespace test15 {
struct A { ~A(); };
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/exceptions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,6 @@ namespace test1 {
return new A(B().x);
}

// rdar://11904428
// Terminate landing pads should call __cxa_begin_catch first.
// CHECK98: define linkonce_odr hidden void @__clang_call_terminate(ptr %0) [[NI_NR_NUW:#[0-9]+]] comdat
// CHECK98-NEXT: [[T0:%.*]] = call ptr @__cxa_begin_catch(ptr %0) [[NUW:#[0-9]+]]
Expand Down Expand Up @@ -214,7 +213,6 @@ namespace test3 {
return new(foo(),bar()) A(5);
}

// rdar://problem/8439196
A *b(bool cond) {

// CHECK: define{{( dso_local)?}} ptr @_ZN5test31bEb(i1 zeroext
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/global-block-literal-helpers.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -std=c++11 -emit-llvm -fblocks -o - -triple x86_64-apple-darwin10 %s | FileCheck %s
// rdar://11343499

namespace N {
typedef void (^BL)();
Expand Down
4 changes: 1 addition & 3 deletions clang/test/CodeGenCXX/global-init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,6 @@ C c;
// CHECK: call i32 @__cxa_atexit(ptr @_ZN1DD1Ev, ptr @d, ptr @__dso_handle)
D d;

// <rdar://problem/7458115>
namespace test1 {
int f();
const int x = f(); // This has side-effects and gets emitted immediately.
Expand All @@ -52,7 +51,6 @@ namespace test1 {
// All of these initializers end up delayed, so we check them later.
}

// <rdar://problem/8246444>
namespace test2 {
struct allocator { allocator(); ~allocator(); };
struct A { A(const allocator &a = allocator()); ~A(); };
Expand Down Expand Up @@ -203,7 +201,7 @@ namespace test7 {
// CHECK: call void [[TEST1_Y_INIT]]
// CHECK: call void [[TEST1_Z_INIT]]

// rdar://problem/8090834: this should be nounwind
// this should be nounwind
// CHECK-NOEXC: define internal void @_GLOBAL__sub_I_global_init.cpp() [[NUW:#[0-9]+]] section "__TEXT,__StaticInit,regular,pure_instructions" {
// CHECK-NOEXC: attributes [[NUW]] = { noinline nounwind{{.*}} }

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/globalinit-loc.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
// rdar://problem/14985269.
//
// Verify that the global init helper function does not get associated
// with any source location.
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/implicit-copy-constructor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ void test_X2()
pdata.f0( new impl(*i));
}

// rdar://problem/9598341
namespace test3 {
struct A { A(const A&); A&operator=(const A&); };
struct B { A a; unsigned : 0; };
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/inheriting-constructor-cleanup.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: %clang_cc1 -triple x86_64-darwin -std=c++11 -fcxx-exceptions -fexceptions -emit-llvm -o - %s | FileCheck %s --check-prefix=EXCEPTIONS

// PR36748
// rdar://problem/45805151

// Classes to verify order of destroying function parameters.
struct S1 {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/inline-functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ void B<char>::f() { }
// MSVCCOMPAT-LABEL: define dso_local void @"?f@@YAXXZ"
void f() { }

// <rdar://problem/8740363>
inline void f1(int);

// NORMAL-LABEL: define linkonce_odr void @_Z2f1i
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/internal-linkage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ Anon anon1;
// CHECK: @anon2 = internal global
X<Anon> anon2;

// rdar: // 8071804
char const * const xyzzy = "Hello, world!";
extern char const * const xyzzy;

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/lambda-expressions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,6 @@ void h() {
A (*h)() = [] { return A(); };
}

// <rdar://problem/12778708>
struct XXX {};
void nestedCapture () {
XXX localKey;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/lpad-linetable.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -fcxx-exceptions -fexceptions -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin10 -std=c++98 %s -o - | FileCheck %s
// The landing pad should have the line number of the closing brace of the function.
// rdar://problem/13888152
// CHECK: ret i32
// CHECK: landingpad {{.*}}
// CHECK-NEXT: !dbg ![[LPAD:[0-9]+]]
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/mangle-template.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ namespace test12 {
}
}

// rdar://problem/12072531
// Test the boundary condition of minimal signed integers.
namespace test13 {
template <char c> char returnChar() { return c; }
Expand Down
8 changes: 0 additions & 8 deletions clang/test/CodeGenCXX/mangle.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,6 @@ namespace test2 {
// CHECK-LABEL: define linkonce_odr noundef i32 @_ZN5test211read_memberINS_1AEEEDtptcvPT_Li0E6memberERS2_(
}

// rdar://problem/9280586
namespace test3 {
struct AmbiguousBase { int ab; };
struct Path1 : AmbiguousBase { float p; };
Expand Down Expand Up @@ -477,7 +476,6 @@ namespace test9 {
}
}

// <rdar://problem/7825453>
namespace test10 {
template <char P1> struct S {};
template <char P2> void f(struct S<false ? 'a' : P2> ) {}
Expand Down Expand Up @@ -527,7 +525,6 @@ namespace test14 {
}
}

// rdar://problem/8204122
namespace test15 {
enum E { e = 3 };
template <int I> struct S {};
Expand All @@ -538,7 +535,6 @@ namespace test15 {
template void f<7>(S<7 + e>);
}

// rdar://problem/8302148
namespace test17 {
template <int N> struct A {};

Expand Down Expand Up @@ -583,7 +579,6 @@ namespace test18 {
// CHECK-LABEL: define weak_odr void @_ZN6test181fINS_1AEEEvNS_1SIXadsrT_onanEEE
}

// rdar://problem/8332117
namespace test19 {
struct A {
template <typename T> int f();
Expand Down Expand Up @@ -622,7 +617,6 @@ namespace test20 {
template void test1<int>(decltype(f<>(int())));
}

// rdar:// 8620510
namespace test21 {
// CHECK-LABEL: define{{.*}} void @_ZN6test2112vla_arg_funcEiPA_i(
void vla_arg_func(int X, int a[X][X]) {}
Expand All @@ -633,7 +627,6 @@ namespace test22 {
void f(decltype(nullptr)) { }
}

// rdar://problem/8913416
namespace test23 {
typedef void * const vpc;

Expand All @@ -659,7 +652,6 @@ namespace test24 {
}
}

// rdar://problem/8806641
namespace test25 {
template <void (*fn)()> struct A {
static void call() { fn(); }
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/member-alignment.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,6 @@
// RUN: %clang_cc1 -emit-llvm -triple x86_64-unknown-windows-msvc %s -o - | \
// RUN: FileCheck -check-prefix CHECK-MSVC %s

// rdar://7268289

class t {
public:
virtual void foo(void);
Expand Down
5 changes: 2 additions & 3 deletions clang/test/CodeGenCXX/member-function-pointers.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -240,9 +240,8 @@ namespace test9 {
}
}

// rdar://problem/10815683 - Verify that we can emit reinterprets of
// member pointers as constant initializers. For added trickiness,
// we also add some non-trivial adjustments.
// Verify that we can emit reinterprets of member pointers as constant
// initializers. For added trickiness, we also add some non-trivial adjustments.
namespace test10 {
struct A {
int nonEmpty;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/microsoft-uuidof-mangling.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -emit-llvm %s -o - -triple x86_64-unknown-unknown -fms-extensions | FileCheck %s --check-prefixes=CHECK,CHECK-V12
// RUN: %clang_cc1 -emit-llvm %s -o - -triple x86_64-unknown-unknown -fms-extensions -fclang-abi-compat=11 | FileCheck %s --check-prefixes=CHECK,CHECK-V11
// rdar://17784718

typedef struct _GUID
{
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/ms_struct.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s

// rdar://20636558

#pragma GCC diagnostic ignored "-Wincompatible-ms-struct"
#define ATTR __attribute__((__ms_struct__))

Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/new-overflow.cpp
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -std=c++14 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s

// rdar://problem/9246208

// Basic test.
namespace test0 {
struct A {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/no-opt-volatile-memcpy.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple=x86_64-apple-darwin -emit-llvm -o - %s | FileCheck %s
// rdar://11861085

struct s {
char filler [128];
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/noexcept.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -o - -fcxx-exceptions -fexceptions -std=c++11 | FileCheck %s

// rdar://11904428
// Ensure that we call __cxa_begin_catch before calling
// std::terminate in a noexcept function.
namespace test0 {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/nrvo.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -760,7 +760,6 @@ X test5() { // http://wg21.link/p2025r2#ex-14
}
#endif

// rdar://problem/10430868
// CHECK-LABEL: @_Z5test6v(
// CHECK-NEXT: entry:
// CHECK-NEXT: [[RESULT_PTR:%.*]] = alloca ptr, align 4
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenCXX/operator-new.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ void f1() {
new teste();
}

// rdar://5739832 - operator new should check for overflow in multiply.
// operator new should check for overflow in multiply.
void *f2(long N) {
return new int[N];

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/pragma-pack-2.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.7.2 %s -emit-llvm -o - | FileCheck %s
// <rdar://problem/10551376>

struct FOO {
unsigned int x;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/predefined-expr.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -538,7 +538,6 @@ int main() {
return 0;
}

// rdar://19065361
class XXX {
XXX();
~XXX();
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/reference-in-block-args.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -fblocks %s -emit-llvm -o %t
// rdar: // 8041962

extern "C" int printf(const char*, ...);

Expand Down
3 changes: 1 addition & 2 deletions clang/test/CodeGenCXX/reference-in-blocks.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ T _i;
T get() {return _i;};
};

// rdar: // 7495203
class A {
public:
A() : field(10), d1(3.14) {}
Expand All @@ -25,7 +24,7 @@ class A {
void A::F()
{
__block A &tlc = *this;
// crashed in code gen (radar 7495203)
// crashed in code gen
^{ tlc.S(); }();
}

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/reference-init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ namespace PR5911 {
int test() { return f(iarr); }
}

// radar 7574896
struct Foo { int foo; };
Foo& ignoreSetMutex = *(new Foo);

Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/rtti-linkage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,11 @@ void t3() {
(void) typeid(T<2>);
}

// rdar://problem/8778973
struct T4 {};
void t4(const T4 *ptr) {
const void *value = &typeid(ptr);
}

// rdar://16265084
void t5() {
struct A {};
const void *value = &typeid(A);
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/runtimecc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@
// translation units to define these runtime functions (or, equivalently,
// for us to get LTO'ed with such a translation unit), and then the
// mismatch will kill us.
//
// rdar://12818655

// CHECK: [[A:%.*]] = type { double }

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/specialized-static-data-mem-init.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
// rdar: // 8562966
// pr8409

// CHECK: @_ZN1CIiE11needs_guardE = linkonce_odr {{(dso_local )?}}global
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/static-init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,6 @@ namespace union_static_local {
}
}

// rdar://problem/11091093
// Static variables should be consistent across constructor
// or destructor variants.
namespace test2 {
Expand Down
3 changes: 0 additions & 3 deletions clang/test/CodeGenCXX/stmtexpr.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -Wno-unused-value -triple i686-linux-gnu -emit-llvm -o - %s | FileCheck %s
// rdar: //8540501
extern "C" int printf(...);
extern "C" void abort();

Expand Down Expand Up @@ -64,7 +63,6 @@ int main()
return foo(1).i-1;
}

// rdar: // 8600553
int a[128];
int* foo5() {
// CHECK-NOT: memcpy
Expand All @@ -73,7 +71,6 @@ int* foo5() {
return (({ a; }));
}

// <rdar://problem/14074868>
// Make sure this doesn't crash.
int foo5(bool b) {
int y = 0;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
// rdar: //8620524
// PR7851
struct string {
string (const string& );
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/temporaries.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,6 @@ namespace Elision {
// CHECK: call void @_ZN7Elision1AD1Ev(ptr {{[^,]*}} [[X]])
}

// rdar://problem/8433352
// CHECK: define{{.*}} void @_ZN7Elision5test5Ev(ptr noalias sret([[A]]) align 8
struct B { A a; B(); };
A test5() {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/throw-expressions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ int test2() {
return val ? throw val : val;
}

// rdar://problem/8608801
void test3() {
throw false;
}
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/thunk-linkonce-odr.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -triple i386-unknown-unknown -emit-llvm -o - | FileCheck %s
// <rdar://problem/7929157> & <rdar://problem/8104369>

struct A {
virtual int f() { return 1; }
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/type_visibility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
#define TYPE_PROTECTED __attribute__((type_visibility("protected")))
#define TYPE_DEFAULT __attribute__((type_visibility("default")))

// type_visibility is rdar://11880378

#if !__has_attribute(type_visibility)
#error No type_visibility attribute!
#endif
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/uncode-string.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// rdar://8360841

wchar_t s[] = L"\u2722";

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/unknown-anytype.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
// x86-64 is the special case here because of its variadic convention.
// We want to ensure that it always uses a variadic convention even if
// other platforms do not.
// rdar://13731520

int test0() {
extern __unknown_anytype test0_any;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/value-init.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,6 @@ void f(const C& c) {

}

// rdar://problem/9355931
namespace test6 {
struct A { A(); A(int); };

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/varargs.cpp
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s

// rdar://7309675
// PR4678
namespace test0 {
// test1 should be compmiled to be a varargs function in the IR even
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/vector-splat-conversion.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ typedef __attribute__((__ext_vector_type__(8))) float vector_float8;

typedef vector_float8 float8;

// rdar://20000762
// CHECK-LABEL: define{{.*}} void @_Z23MandelbrotPolyCalcSIMD8v
void MandelbrotPolyCalcSIMD8() {
constexpr float8 v4 = 4.0; // value to compare against abs(z)^2, to see if bounded
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ extern template struct X<int>;
template struct X<int>;
extern template struct X<char>;

// <rdar://problem/8109763>
void test_X(X<int> xi, X<char> xc) {
// CHECK-LABEL: define weak_odr hidden {{.*}}void @_ZN1XIiE1fEv
xi.f();
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/visibility-inlines-hidden.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,6 @@ void use(X0 *x0, X1<int> *x1, X2 *x2, X1<float> *x3) {
x3->f2();
}

// rdar://problem/8614470
namespace test1 {
struct __attribute__((visibility("default"))) A {
inline void foo();
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenCXX/visibility-ms-compat.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@
// The two visibility options above are how we translate
// -fvisibility-ms-compat in the driver.

// rdar://13079314

#define HIDDEN __attribute__((visibility("hidden")))
#define PROTECTED __attribute__((visibility("protected")))
#define DEFAULT __attribute__((visibility("default")))
Expand Down
4 changes: 0 additions & 4 deletions clang/test/CodeGenCXX/visibility.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -216,7 +216,6 @@ namespace Test5 {
}
}

// <rdar://problem/8091955>
namespace Test6 {
struct HIDDEN foo {
foo() { }
Expand Down Expand Up @@ -354,7 +353,6 @@ namespace Test14 {
struct A *test() { return var; }
}

// rdar://problem/8613093
namespace Test15 {
struct A {};
template <class T> struct Temp {
Expand Down Expand Up @@ -517,7 +515,6 @@ namespace Test20 {
A<1>::test3();
}

// <rdar://problem/8778497>
// But we should assume that an unknown specialization has the
// explicit visibility settings of the template.
template <class T> struct B {
Expand Down Expand Up @@ -547,7 +544,6 @@ namespace test21 {
template void A<en>::foo();
}

// rdar://problem/9616154
// Visibility on explicit specializations should take precedence.
namespace test22 {
class A1 {};
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/vla.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ int f() {
return sizeof a;
}

// rdar://problem/9506377
void test0(void *array, int n) {
// CHECK-LABEL: define{{.*}} void @_Z5test0Pvi(
// AMDGCN: [[ARRAY0:%.*]] = alloca ptr, align 8, addrspace(5)
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenCXX/volatile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %clang_cc1 %s -triple=x86_64-apple-darwin10 -emit-llvm -std=c++11 -o - | FileCheck -check-prefix=CHECK -check-prefix=CHECK11 %s

// Check that IR gen doesn't try to do an lvalue-to-rvalue conversion
// on a volatile reference result. rdar://problem/8338198
// on a volatile reference result.
namespace test0 {
struct A {
A(const A& t);
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/vtable-debug-info.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang -emit-llvm -S -g %s -o /dev/null
// Radar 8730409
// XFAIL: target={{.*-windows-msvc}}

// FIXME: This test crashes on *-pc-win32
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/vtable-layout.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1839,7 +1839,6 @@ C* C::f() { return 0; }

}

// rdar://problem/10959710
namespace Test38 {
struct A {
virtual void *foo();
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenCXX/vtable-linkage.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ void use_F() {
// CHECK-DAG: @_ZTV1B = external unnamed_addr constant

// C has no key function, so its vtable should have weak_odr linkage
// and hidden visibility (rdar://problem/7523229).
// and hidden visibility.
// CHECK-DAG: @_ZTV1C = linkonce_odr unnamed_addr constant {{.*}}, comdat, align 8{{$}}
// CHECK-DAG: @_ZTS1C = linkonce_odr constant {{.*}}, comdat, align 1{{$}}
// CHECK-DAG: @_ZTI1C = linkonce_odr constant {{.*}}, comdat, align 8{{$}}
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenCXX/weak-extern-typeinfo.cpp
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm -triple %itanium_abi_triple -o - | FileCheck %s
// rdar://10246395

#define WEAK __attribute__ ((weak))

Expand Down
9 changes: 3 additions & 6 deletions clang/test/CodeGenCXX/x86_64-arguments.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ void foo() {
}
}

namespace PR7742 { // Also rdar://8250764
namespace PR7742 {
struct s2 {
float a[2];
};
Expand Down Expand Up @@ -107,8 +107,8 @@ namespace test5 {
X getX();
int takeY(const Y&, int y);
void g() {
// rdar://8340348 - The temporary for the X object needs to have a defined
// address when passed into X::f as 'this'.
// The temporary for the X object needs to have a defined address when
// passed into X::f as 'this'.
takeY(getX().f(), 42);
}
// CHECK: void @_ZN5test51gEv()
Expand All @@ -117,8 +117,6 @@ namespace test5 {
// CHECK: alloca %"struct.test5::Y"
}


// rdar://8360877
namespace test6 {
struct outer {
int x;
Expand All @@ -138,7 +136,6 @@ namespace test7 {
A x(A, A, long, long, StringRef) { return A(); }
// Check that the StringRef is passed byval instead of expanded
// (which would split it between registers and memory).
// rdar://problem/9686430
// CHECK: define{{.*}} void @_ZN5test71xENS_1AES0_llNS_9StringRefE({{.*}} byval({{.*}}) align 8 {{%.*}})

// And a couple extra related tests:
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/2007-10-23-GC-WriteBarrier.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm %s -o /dev/null -fobjc-gc
// rdar://5541393

typedef unsigned int NSUInteger;
__attribute__((objc_gc(strong))) float *_scores;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/2008-11-25-Blocks.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -fblocks -emit-llvm %s -o /dev/null
// rdar://6394879

@interface bork
- (id)B:(void (^)(void))blk;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/2009-01-26-WriteBarrier-2.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %clang_cc1 -fblocks -emit-llvm %s -fobjc-gc -o - | FileCheck %s

// CHECK: objc_assign_strongCast
// rdar://5541393

typedef __SIZE_TYPE__ size_t;
void * malloc(size_t size);
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/2009-02-05-VolatileProp.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang -fexceptions -S -emit-llvm %s -o /dev/null -pedantic-errors
// rdar://6551276

void foo(const unsigned short *);
void bar(void) {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/2009-08-05-utf16.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// REQUIRES: x86-registered-target

// RUN: %clang_cc1 -triple x86_64-macho -emit-llvm -w -x objective-c %s -o - | FileCheck %s
// rdar://7095855 rdar://7115749

// CHECK: private unnamed_addr constant [6 x i16] [i16 105, i16 80, i16 111, i16 100, i16 8482, i16 0], section "__TEXT,__ustring", align 2
void *P = @"iPodâ„¢";
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/2010-02-01-utf16-with-null.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple i686-apple-darwin -emit-llvm %s -o - | FileCheck %s
// rdar://7589850

// CHECK: @.str = private unnamed_addr constant [9 x i16] [i16 103, i16 111, i16 111, i16 100, i16 0, i16 98, i16 121, i16 101, i16 0], section "__TEXT,__ustring", align 2
// CHECK: @_unnamed_cfstring_ = private global %struct.__NSConstantString_tag { ptr @__CFConstantStringClassReference, i32 2000, ptr @.str, i32 8 }, section "__DATA,__cfstring"
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenObjC/2010-03-17-StructRef.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -o - | FileCheck %s
// Bitfield references must not touch memory outside of the enclosing
// struct. Radar 7639995
// struct.
typedef signed char BOOL;
@protocol NSObject
- (id)init;
Expand Down
3 changes: 1 addition & 2 deletions clang/test/CodeGenObjC/arc-arm.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -triple armv7-apple-darwin10 -emit-llvm -fblocks -fobjc-arc -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple arm64-apple-ios -emit-llvm -fblocks -fobjc-arc -o - %s | FileCheck %s

// <rdar://12438598>: use an autorelease marker on ARM64.
// use an autorelease marker on ARM64.

id test0(void) {
extern id test0_helper(void);
Expand All @@ -21,7 +21,6 @@ void test1(void) {
id x = test1_helper();
}

// rdar://problem/12133032
@class A;
A *test2(void) {
extern A *test2_helper(void);
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/arc-block-copy-escape.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
void use_block(block_t);
void use_int(int);

// rdar://problem/10211676

void test0(int i) {
block_t block = ^{ use_int(i); };
// CHECK-LABEL: define {{.*}}void @test0(
Expand Down
17 changes: 3 additions & 14 deletions clang/test/CodeGenObjC/arc-blocks.m
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,6 @@ id test9(void) {
// CHECK-NEXT: ret ptr
}

// rdar://problem/9814099
// Test that we correctly initialize __block variables
// when the initialization captures the variable.
void test10a(void) {
Expand Down Expand Up @@ -334,10 +333,9 @@ void test10a(void) {
// CHECK: ret void
}

// <rdar://problem/10402698>: do this copy and dispose with
// objc_retainBlock/release instead of _Block_object_assign/destroy.
// We can also use _Block_object_assign/destroy with
// BLOCK_FIELD_IS_BLOCK as long as we don't pass BLOCK_BYREF_CALLER.
// do this copy and dispose with objc_retainBlock/release instead of
// _Block_object_assign/destroy. We can also use _Block_object_assign/destroy
// with BLOCK_FIELD_IS_BLOCK as long as we don't pass BLOCK_BYREF_CALLER.

// CHECK-LABEL: define internal void @__Block_byref_object_copy_.{{[0-9]+}}(ptr noundef %0, ptr noundef %1) #{{[0-9]+}} {
// CHECK: [[D0:%.*]] = load ptr, ptr {{%.*}}
Expand Down Expand Up @@ -389,7 +387,6 @@ void test10b(void) {
// CHECK: ret void
}

// rdar://problem/10088932
void test11_helper(id);
void test11a(void) {
int x;
Expand Down Expand Up @@ -418,7 +415,6 @@ void test11b(void) {
// CHECK: ret void
}

// rdar://problem/9979150
@interface Test12
@property (strong) void(^ablock)(void);
@property (nonatomic, strong) void(^nblock)(void);
Expand All @@ -438,7 +434,6 @@ @implementation Test12
// CHECK: call void @objc_setProperty(ptr noundef {{%.*}}, ptr noundef {{%.*}}, i64 noundef {{%.*}}, ptr noundef {{%.*}}, i1 noundef zeroext false, i1 noundef zeroext true)
@end

// rdar://problem/10131784
void test13(id x) {
extern void test13_helper(id);
extern void test13_use(void(^)(void));
Expand Down Expand Up @@ -490,19 +485,16 @@ void test13(id x) {
// CHECK-NEXT: ret void
}

// <rdar://problem/10907510>
void test14(void) {
void (^const x[1])(void) = { ^{} };
}

// rdar://11149025
// Don't make invalid ASTs and crash.
void test15_helper(void (^block)(void), int x);
void test15(int a) {
test15_helper(^{ (void) a; }, ({ a; }));
}

// rdar://11016025
void test16(void) {
void (^BLKVAR)(void) = ^{ BLKVAR(); };

Expand All @@ -513,8 +505,6 @@ void test16(void) {
// CHECK-NEXT: store ptr null, ptr [[BLKVAR]], align 8
}

// rdar://12151005
//
// This is an intentional exception to our conservative jump-scope
// checking for full-expressions containing block literals with
// non-trivial cleanups: if the block literal appears in the operand
Expand Down Expand Up @@ -592,7 +582,6 @@ void testUnsafeUnretainedLifetimeInCopyAndDestroyHelpers(id x, id y) {
// CHECK-LABEL: define internal void @__testUnsafeUnretainedLifetimeInCopyAndDestroyHelpers_block_invoke
// CHECK-UNOPT-LABEL: define internal void @__testUnsafeUnretainedLifetimeInCopyAndDestroyHelpers_block_invoke

// rdar://13588325
void test19_sink(void (^)(int));
void test19(void (^b)(void)) {
// CHECK-LABEL: define{{.*}} void @test19(
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
// RUN: FileCheck --input-file=%t-32.layout %s
// rdar://12184410
// rdar://12752901

@class NSString;
extern void NSLog(NSString *format, ...);
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/arc-captured-32bit-block-var-layout.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
// RUN: FileCheck --input-file=%t-32.layout %s
// rdar://12184410
// rdar://12752901

void x(id y) {}
void y(int a) {}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: FileCheck --input-file=%t-64.layout %s
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
// RUN: FileCheck --input-file=%t-32.layout %s
// rdar://12184410

void x(id y) {}
void y(int a) {}
Expand Down Expand Up @@ -95,7 +94,6 @@ void f(void) {
};
}

// rdar://12752901
@class NSString;
extern void NSLog(NSString *format, ...);
typedef void (^dispatch_block_t)(void);
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/arc-captured-block-var-layout.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.layout %s
// rdar://12184410
// rdar://12752901

void x(id y) {}
void y(int a) {}
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arc-compound-stmt.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s
// rdar://9694706

typedef unsigned long NSUInteger;

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arc-cond-stmt.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s
// rdar://10327068

@class NSString;

Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenObjC/arc-exceptions.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@class Ety;

// These first two tests are all PR11732 / rdar://problem/10667070.
// These first two tests are all PR11732

void test0_helper(void);
void test0(void) {
Expand Down
3 changes: 0 additions & 3 deletions clang/test/CodeGenObjC/arc-foreach.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -no-enable-noundef-analysis -triple x86_64-apple-darwin -fblocks -fobjc-arc -fobjc-runtime-has-weak -emit-llvm %s -o - | FileCheck -check-prefix CHECK-LP64 %s
// RUN: %clang_cc1 -no-enable-noundef-analysis -triple x86_64-apple-darwin -O1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -emit-llvm %s -o - | FileCheck -check-prefix CHECK-LP64-OPT %s
// rdar://9503326
// rdar://9606600

extern void use(id);
extern void use_block(void (^)(void));
Expand Down Expand Up @@ -112,7 +110,6 @@ void test1(NSArray *array) {
// CHECK-LP64-NEXT: call void @llvm.objc.destroyWeak(ptr [[T0]])
// CHECK-LP64-NEXT: call void @llvm.objc.destroyWeak(ptr [[X]])

// rdar://problem/9817306
@interface Test2
- (NSArray *) array;
@end
Expand Down
3 changes: 1 addition & 2 deletions clang/test/CodeGenObjC/arc-i386.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 -triple i386-apple-darwin10 -emit-llvm -fblocks -fobjc-arc -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple i386-apple-iossimulator6.0 -emit-llvm -fblocks -fobjc-arc -o - %s | FileCheck %s

// <rdar://24531556>: implement objc_retainAutoreleasedReturnValue on i386
// implement objc_retainAutoreleasedReturnValue on i386

// CHECK-LABEL: define{{.*}} ptr @test0()
id test0(void) {
Expand All @@ -23,7 +23,6 @@ void test1(void) {
id x = test1_helper();
}

// rdar://problem/12133032
// CHECK-LABEL: define {{.*}} @test2()
@class A;
A *test2(void) {
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/arc-ivar-layout.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -print-ivar-layout -emit-llvm %s -o %t-64.s | FileCheck -check-prefix CHECK-LP64 %s
// rdar://8991729

@interface NSObject {
id isa;
Expand Down Expand Up @@ -54,7 +53,6 @@ @implementation UnsafePerson @end

// CHECK-LP64: strong ivar layout for class 'UnsafePerson': 0x21, 0x00

// rdar://16136439
@interface rdar16136439
@property (nonatomic, readonly, weak) id first;
@end
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arc-loadweakretained-release.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fblocks -fobjc-arc -fobjc-runtime-has-weak -o - %s | FileCheck %s
// rdar://10849570

@interface NSObject @end

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arc-no-runtime.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -emit-llvm %s -o - | FileCheck %s

// rdar://problem/9224855
id make(void) __attribute__((ns_returns_retained));
void test0(void) {
make();
Expand Down
6 changes: 3 additions & 3 deletions clang/test/CodeGenObjC/arc-precise-lifetime.m
Original file line number Diff line number Diff line change
Expand Up @@ -24,11 +24,11 @@ void test0(void) {
// CHECK-NEXT: ret void
}

// rdar://problem/9821110 - precise lifetime should suppress extension
// rdar://problem/22172983 - should work for calls via property syntax, too
// precise lifetime should suppress extension
// should work for calls via property syntax, too
@interface Test1
- (char*) interior __attribute__((objc_returns_inner_pointer));
// Should we allow this on properties? Yes! see // rdar://14990439
// Should we allow this on properties? Yes!
@property (nonatomic, readonly) char * PropertyReturnsInnerPointer __attribute__((objc_returns_inner_pointer));
@end
extern Test1 *test1_helper(void);
Expand Down
4 changes: 0 additions & 4 deletions clang/test/CodeGenObjC/arc-property.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -emit-llvm %s -o - | FileCheck %s

// rdar://problem/10290317
@interface Test0
- (void) setValue: (id) x;
@end
Expand Down Expand Up @@ -36,7 +35,6 @@ @implementation Test1
// CHECK-NEXT: ret void


// rdar://problem/12039404
@interface Test2 {
@private
Class _theClass;
Expand Down Expand Up @@ -77,7 +75,6 @@ - (void) test {
// CHECK-NEXT: call void @llvm.objc.storeStrong(ptr [[T2]], ptr null) [[NUW]]
// CHECK-NEXT: ret void

// rdar://13115896
@interface Test3
@property id copyMachine;
@end
Expand Down Expand Up @@ -119,7 +116,6 @@ - (id) copyMachine {
- (void) setCopyMachine: (id) x {}
@end

// rdar://31579994
// When synthesizing a property that's declared in multiple protocols, ensure
// that the setter is emitted if any of these declarations is readwrite.
@protocol ABC
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arc-ternary-op.m
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,6 @@ void test1(int cond) {
// CHECK: ret void
}

// rdar://13113981
// Test that, when emitting an expression at +1 that we can't peephole,
// we emit the retain inside the full-expression. If we ever peephole
// +1s of conditional expressions (which we probably ought to), we'll
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/arc-unbridged-cast.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -emit-llvm -fobjc-arc -o - %s | FileCheck %s
// rdar://9744349

typedef const struct __CFString * CFStringRef;

Expand All @@ -24,7 +23,6 @@ - (CFStringRef) P { return 0; }
- (void) setP : (CFStringRef)arg {}
@end

// rdar://9544832
CFStringRef SomeOtherFunc(void) __attribute__((cf_returns_retained));
id MMM(void)
{
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arc-unopt.m
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ @interface Test4_sub : Test4 { id y; } @end
return test4_helper();
}

// rdar://problem/9418404
@class Test5;
void test5(void) {
Test5 *x, *y;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arc-unoptimized-byref-var.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fblocks -fobjc-arc -fobjc-runtime-has-weak -o - %s | FileCheck -check-prefix=CHECK-UNOPT %s
// rdar://12530881

void test19(void) {
__block id x;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arc-weak-property.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-runtime-has-weak -fblocks -fobjc-arc -o - %s | FileCheck %s
// rdar://8899430

@interface WeakPropertyTest {
__weak id PROP;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arc-weak.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
__attribute((objc_root_class)) @interface A @end
@interface B : A @end

// rdar://problem/23559789
// Ensure that type differences don't cause an assert here.
void test0(__weak B **src) {
__weak A *dest = *src;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arc-with-atthrow.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -fobjc-exceptions -o - %s | FileCheck %s
// pr10411
// rdar://10042689

id make(void);
void test(void) {
Expand Down
25 changes: 2 additions & 23 deletions clang/test/CodeGenObjC/arc.m
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wno-objc-root-class -Wno-incompatible-pointer-types -Wno-arc-unsafe-retained-assign -emit-llvm -fblocks -fobjc-arc -fobjc-runtime-has-weak -O2 -disable-llvm-passes -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -Wno-objc-root-class -Wno-incompatible-pointer-types -Wno-arc-unsafe-retained-assign -emit-llvm -fblocks -fobjc-arc -fobjc-runtime-has-weak -o - %s | FileCheck -check-prefix=CHECK-GLOBALS %s

// rdar://13129783. Check both native/non-native arc platforms. Here we check
// that they treat nonlazybind differently.
// Check both native/non-native arc platforms. Here we check that they treat
// nonlazybind differently.
// RUN: %clang_cc1 -fobjc-runtime=macosx-10.6.0 -triple x86_64-apple-darwin10 -Wno-objc-root-class -Wno-incompatible-pointer-types -Wno-arc-unsafe-retained-assign -emit-llvm -fblocks -fobjc-arc -fobjc-runtime-has-weak -o - %s | FileCheck -check-prefix=ARC-ALIEN %s
// RUN: %clang_cc1 -fobjc-runtime=macosx-10.7.0 -triple x86_64-apple-darwin11 -Wno-objc-root-class -Wno-incompatible-pointer-types -Wno-arc-unsafe-retained-assign -emit-llvm -fblocks -fobjc-arc -fobjc-runtime-has-weak -o - %s | FileCheck -check-prefix=ARC-NATIVE %s

Expand Down Expand Up @@ -562,9 +562,7 @@ void test21(unsigned n) {
// CHECK-NEXT: ret void
}

// rdar://problem/8922540
// Note that we no longer emit .release_ivars flags.
// rdar://problem/12492434
// Note that we set the flag saying that we need destruction *and*
// the flag saying that we don't also need construction.
// CHECK-GLOBALS: @"_OBJC_CLASS_RO_$_Test23" = internal global [[RO_T:%.*]] { i32 390,
Expand All @@ -575,7 +573,6 @@ @implementation Test23 @end
@interface Test24 {} @end
@implementation Test24 @end

// rdar://problem/8941012
@interface Test26 { id x[4]; } @end
@implementation Test26 @end
// CHECK: define internal void @"\01-[Test26 .cxx_destruct]"(
Expand Down Expand Up @@ -611,7 +608,6 @@ - (id) init { return self; }

@end

// rdar://problem/8087194
@interface Test28
@property (copy) id prop;
@end
Expand Down Expand Up @@ -933,7 +929,6 @@ @implementation Test45
// CHECK: [[CALL:%.*]] = tail call ptr @objc_getProperty(
// CHECK-NEXT: ret ptr [[CALL]]

// rdar://problem/9315552
void test46(__weak id *wp, __weak volatile id *wvp) {
extern id test46_helper(void);

Expand All @@ -958,7 +953,6 @@ void test46(__weak id *wp, __weak volatile id *wvp) {
id y = *wvp = test46_helper();
}

// rdar://problem/9378887
void test47(void) {
extern id test47_helper(void);
id x = x = test47_helper();
Expand Down Expand Up @@ -1016,16 +1010,13 @@ void test49(void) {
// CHECK-NEXT: ret void
}

// rdar://9380136
id x(void);
void test50(id y) {
({x();});
// CHECK: [[T0:%.*]] = call ptr @llvm.objc.retain
// CHECK: call void @llvm.objc.release
}


// rdar://9400762
struct CGPoint {
float x;
float y;
Expand All @@ -1040,7 +1031,6 @@ @implementation Foo
@synthesize point;
@end

// rdar://problem/9400398
id test52(void) {
id test52_helper(int) __attribute__((ns_returns_retained));
return ({ int x = 5; test52_helper(x); });
Expand All @@ -1059,7 +1049,6 @@ id test52(void) {
// CHECK-NEXT: ret ptr [[T3]]
}

// rdar://problem/9400644
void test53(void) {
id test53_helper(void);
id x = ({ id y = test53_helper(); y; });
Expand Down Expand Up @@ -1088,7 +1077,6 @@ void test53(void) {
// CHECK-NEXT: ret void
}

// <rdar://problem/9758798>
// CHECK-LABEL: define{{.*}} void @test54(i32 noundef %first, ...)
void test54(int first, ...) {
__builtin_va_list arglist;
Expand All @@ -1112,7 +1100,6 @@ - (void) dealloc {}
// CHECK-NOT: ret
// CHECK: call void @objc_msgSendSuper2(

// rdar://problem/8024350
@protocol Test56Protocol
+ (id) make __attribute__((ns_returns_retained));
@end
Expand Down Expand Up @@ -1140,7 +1127,6 @@ void test56_test(void) {
// CHECK-NEXT: ret void
}

// rdar://problem/9784964
@interface Test57
@property (nonatomic, strong) id strong;
@property (nonatomic, weak) id weak;
Expand Down Expand Up @@ -1171,7 +1157,6 @@ @implementation Test57
// CHECK-NEXT: [[T5:%.*]] = load ptr, ptr [[T3]]
// CHECK-NEXT: ret ptr [[T5]]

// rdar://problem/9842343
void test59(void) {
extern id test59_getlock(void);
extern void test59_body(void);
Expand All @@ -1190,7 +1175,6 @@ void test59(void) {
}

// Verify that we don't try to reclaim the result of performSelector.
// rdar://problem/9887545
@interface Test61
- (id) performSelector: (SEL) selector;
- (void) test61_void;
Expand Down Expand Up @@ -1227,7 +1211,6 @@ void test61(void) {
// CHECK-NEXT: ret void
}

// rdar://problem/9891815
void test62(void) {
// CHECK-LABEL: define{{.*}} void @test62()
// CHECK: [[I:%.*]] = alloca i32, align 4
Expand Down Expand Up @@ -1277,7 +1260,6 @@ void test62(void) {
// CHECK: ret void
}

// rdar://9971982
@class NSString;

@interface Person {
Expand Down Expand Up @@ -1318,7 +1300,6 @@ void test66(void) {
// CHECK: call void @llvm.objc.release(ptr [[T3]])
// CHECK-NEXT: ret void

// rdar://problem/9953540
Class test67_helper(void);
void test67(void) {
Class cl = test67_helper();
Expand Down Expand Up @@ -1346,7 +1327,6 @@ void test68(void) {
// CHECK-NEXT: call void @llvm.lifetime.end.p0(i64 8, ptr [[CL]])
// CHECK-NEXT: ret void

// rdar://problem/10564852
@interface Test69 @end
@implementation Test69
- (id) foo { return self; }
Expand All @@ -1356,7 +1336,6 @@ - (id) foo { return self; }
// CHECK: [[T0:%.*]] = load ptr, ptr [[SELF]], align 8
// CHECK-NEXT: ret ptr [[T0]]

// rdar://problem/10907547
void test70(id i) {
// CHECK-LABEL: define{{.*}} void @test70
// CHECK: store ptr null, ptr
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arm-atomic-scalar-setter-getter.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple armv7-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-ARM %s
// rdar://7761305

@interface I
@property long long LONG_PROP;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/arm64-int32-ivar.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple arm64-apple-ios -emit-llvm -o - %s | FileCheck %s
// rdar://12617764

// CHECK: @"OBJC_IVAR_$_I.IVAR2" = global i32 8
// CHECK: @"OBJC_IVAR_$_I.IVAR1" = global i32 0
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/atomic-aggregate-property.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -no-enable-noundef-analysis -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o - %s | FileCheck -check-prefix CHECK-LP64 %s
// RUN: %clang_cc1 -no-enable-noundef-analysis -x objective-c++ -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o - %s | FileCheck -check-prefix CHECK-LP64 %s
// rdar: // 7849824
// <rdar://problem/12547611>

struct s {
double a, b, c, d;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/auto-property-synthesize-protocol.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s
// rdar://10907410

@protocol P
@optional
Expand Down
3 changes: 0 additions & 3 deletions clang/test/CodeGenObjC/autorelease.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -fobjc-runtime=macosx-10.7 -fexceptions -fobjc-exceptions -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -emit-llvm -fobjc-runtime=macosx-10.7 -fexceptions -fobjc-exceptions -o - %s | FileCheck %s
// rdar://8881826
// rdar://9412038

@interface I
{
Expand Down Expand Up @@ -29,7 +27,6 @@ + (id) MyAlloc {
// CHECK: [[T:%.*]] = load ptr, ptr [[A:%.*]]
// CHECK: call void @llvm.objc.autoreleasePoolPop

// rdar://13660038
int tryTo(int (*f)(void)) {
@try {
@autoreleasepool {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/block-6.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm -o - -fblocks -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 | FileCheck %s
// rdar://8893785

void MYFUNC(void) {
// CHECK-LABEL: define{{.*}} void @MYFUNC()
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/block-byref-variable-layout.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -fblocks -fobjc-arc -fobjc-runtime-has-weak -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s

// rdar://12759433
@class NSString;

void Test12759433(void) {
Expand Down Expand Up @@ -41,7 +40,6 @@ int main(void) {
c();
}

// rdar://12787751
typedef char mds_path_t[1024];
void directVolumePerfWaitForStoreState(void)
{
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/block-over-align.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -emit-llvm -o /dev/null %s
// rdar://17878679

typedef struct
{
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/block-ptr-type-crash.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// REQUIRES: asserts
// Verify there is no assertion.

// rdar://30111891

typedef unsigned long long uint64_t;
typedef enum AnEnum : uint64_t AnEnum;
enum AnEnum: uint64_t {
Expand Down
3 changes: 0 additions & 3 deletions clang/test/CodeGenObjC/block-var-layout.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -fblocks -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -print-ivar-layout -emit-llvm -o /dev/null %s > %t-64.layout
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.layout %s
// rdar://12752901

struct S {
int i1;
Expand Down Expand Up @@ -137,7 +136,6 @@ void Test5(void) {
c();
}

// rdar: //8417746
void CFRelease(id);
void notifyBlock(id dependentBlock) {
id singleObservationToken;
Expand Down Expand Up @@ -165,7 +163,6 @@ void test_empty_block(void) {
wrapperBlock();
}

// rdar://16111839
typedef union { char ch[8]; } SS;
typedef struct { SS s[4]; } CS;
void test_union_in_layout(void) {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenObjC/blocks-2.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ id test0(id x) {
return result;
}

// <rdar://problem/8224178>: cleanup __block variables on EH path
// cleanup __block variables on EH path
// CHECK: define{{.*}} void @{{.*}}test1
void test1(void) {
extern void test1_help(void (^x)(void));
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/blocks-4.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -fobjc-exceptions -fblocks -o %t %s
// rdar://7590273

void EXIT(id e);

Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/blocks-5.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -fblocks -o %t %s

// rdar: // 8064140

@interface IDEWorkspaceDocument
{
id _defaultEditorStateTree;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/blocks-ivar-debug.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -debug-info-kind=limited %s -fblocks -S -o %t
// Radar 7959934

@interface NSObject {
struct objc_object *isa;
Expand Down
4 changes: 0 additions & 4 deletions clang/test/CodeGenObjC/blocks.m
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@

void (^gb0)(void);

// test1. All of this is somehow testing rdar://6676764
struct S {
void (^F)(struct S*);
} P;
Expand Down Expand Up @@ -45,7 +44,6 @@ -(void) im3 {
}
@end

// rdar://problem/9006315
// In-depth test for the initialization of a __weak __block variable.
@interface Test2 -(void) destroy; @end
void test2(Test2 *x) {
Expand Down Expand Up @@ -93,7 +91,6 @@ void test2(Test2 *x) {
test2_helper(^{ [weakX destroy]; });
}

// rdar://problem/9124263
// In the test above, check that the use in the invocation function
// doesn't require a read barrier.
// CHECK-LABEL: define internal void @__test2_block_invoke
Expand All @@ -104,7 +101,6 @@ void test2(Test2 *x) {
// CHECK-NEXT: [[WEAKX:%.*]] = getelementptr inbounds [[WEAK_T]]{{.*}}, ptr [[T4]], i32 0, i32 6
// CHECK-NEXT: [[T0:%.*]] = load ptr, ptr [[WEAKX]], align 4

// rdar://problem/12722954
// Make sure that ... is appropriately positioned in a block call.
void test3(void (^block)(int, ...)) {
block(0, 1, 2, 3);
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/builtin-constant-p.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

// Test that can call `__builtin_constant_p` with instances of different
// Objective-C classes.
// rdar://problem/47499250
@class Foo;
@class Bar;

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/category-super-class-meth.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s
// rdar://12459358
@interface NSObject
-(id)copy;
+(id)copy;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/class-type.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ @implementation I2


// Implementations without interface declarations.
// rdar://6804402
@class foo;
@implementation foo
@end
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/complex-double-abi.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm -triple i386-apple-macosx10.7.2 %s -o - | FileCheck %s
// rdar://10331109

@interface CNumber
- (double _Complex)sum;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/complex-property.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix CHECK-LP64 %s
// rdar: // 7351147

@interface A
@property __complex int COMPLEX_PROP;
Expand All @@ -16,7 +15,6 @@ void f0(A *a) {
// CHECK-LP64: private unnamed_addr constant [13 x i8] c"COMPLEX_PROP
// CHECK-LP64: private unnamed_addr constant [17 x i8] c"setCOMPLEX_PROP

// rdar: // 7351147
@interface B
@property (assign) _Complex float f_complex_ivar;
@end
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/compound-literal-property-access.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s
// rdar://20407999

typedef __attribute__((__ext_vector_type__(2))) float vector_float2;

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/constant-string-class.m
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fno-constant-cfstrings -fconstant-string-class Foo -emit-llvm -o %t %s
// RUN: FileCheck --check-prefix CHECK-NONFRAGILE < %t %s

// rdar: // 8564463
// PR6056

@interface Object {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/debug-info-block-line.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -emit-llvm -fblocks -fobjc-arc -debug-info-kind=limited -triple x86_64-apple-darwin10 %s -o - | FileCheck %s

// rdar://11562117
typedef unsigned int NSUInteger;
typedef long NSInteger;
typedef signed char BOOL;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/debug-info-blocks.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -emit-llvm -fblocks -debug-info-kind=limited -triple x86_64-apple-darwin10 -fobjc-dispatch-method=mixed -x objective-c < %s -o - | FileCheck %s

// rdar://problem/9279956
// Test that we generate the proper debug location for a captured self.
// The second half of this test is in llvm/tests/DebugInfo/debug-info-blocks.ll

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/debug-info-crash.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple i386-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -fblocks -debug-info-kind=limited -S %s -o -

// rdar://7556129
@implementation test
- (void)wait {
^{};
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/debug-info-default-synth-ivar.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -debug-info-kind=limited %s -o %t
// RUN: grep DW_TAG_member %t | count 5
// rdar://8493239

@class NSString;

Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/debug-info-getter-name.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,6 @@

// CHECK: !DISubprogram(name: "-[InstanceVariablesEverywhereButTheInterface someString]"

//rdar: //8498026

@class NSString;

@interface InstanceVariablesEverywhereButTheInterface
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/debug-info-instancetype.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited -triple x86_64-apple-darwin10 %s -o - | FileCheck %s
// rdar://problem/13359718
// Substitute the actual type for a method returning instancetype.
@interface NSObject
+ (id)alloc;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/debug-info-lifetime-crash.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple arm-apple-ios -emit-llvm -debug-info-kind=limited -fblocks -fobjc-runtime=ios-7.0.0 -fobjc-arc %s -o - | FileCheck %s
// rdar://problem/14990656
@protocol NSObject
- (id)copy;
@end
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/debug-info-property-accessors.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -emit-llvm -x objective-c -debug-info-kind=limited -triple x86_64-apple-macosx10.8.0 %s -o - | FileCheck %s
//
// rdar://problem/14035789
//
// Ensure we emit the names of explicit/renamed accessors even if they
// are defined later in the implementation section.
//
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/debug-info-selector.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
// Radar 8494540

// CHECK: objc_selector
@interface MyClass {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/debug-info-static-var.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm -o - %s | FileCheck %s
// Radar 8801045
// Do not emit AT_MIPS_linkage_name for static variable i

// CHECK: !DIGlobalVariable(name: "i"
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/debug-property-synth.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm -debug-info-kind=limited %s -o - | FileCheck %s
// rdar://problem/9468526
//
// Setting a breakpoint on a property should create breakpoints in
// synthesized getters/setters.
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/debuginfo-properties.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -debug-info-kind=limited -emit-llvm -triple x86_64-apple-darwin -o - %s | FileCheck %s
// Check that we emit the correct method names for properties from a protocol.
// rdar://problem/13798000
@protocol NSObject
- (id)init;
@end
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/default-property-synthesis.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s
// rdar://7923851.

// Superclass declares property. Subclass redeclares the same property.
// Do not @synthesize-by-default in the subclass. P1
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/designated-initializers.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple i386-unknown-unknown %s -emit-llvm -o - | FileCheck %s

// <rdar://problem/10465114>
struct overwrite_string_struct {
char L[3];
int M;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/dot-syntax-2.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm -o %t %s
// rdar: // 8062778

@interface NSDictionary @end

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/encode-cstyle-method.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck -check-prefix CHECK-LP64 %s
// rdar: // 7445205

@interface Foo
- (id)test:(id)one, id two;
Expand Down
5 changes: 0 additions & 5 deletions clang/test/CodeGenObjC/encode-test-6.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin -emit-llvm -o %t %s
// RUN: FileCheck < %t %s
// rdar://11777609

typedef struct {} Z;

Expand All @@ -17,8 +16,6 @@ -(void)foo:(Z)a: (char*)b : (Z)c : (double) d {}
// CHECK: private unnamed_addr constant [14 x i8] c"v16@0:8{?=}16
// CHECK: private unnamed_addr constant [26 x i8] c"v32@0:8{?=}16*16{?=}24d24


// rdar://13190095
@interface NSObject @end

@class BABugExample;
Expand All @@ -36,7 +33,6 @@ @implementation BABugExample

// CHECK: private unnamed_addr constant [8 x i8] c"@16

// rdar://14408244
@class SCNCamera;
typedef SCNCamera C3DCamera;
typedef struct
Expand All @@ -54,7 +50,6 @@ @implementation SCNCamera
@end
// CHECK: private unnamed_addr constant [39 x i8] c"{?=\22presentationInstance\22@\22SCNCamera\22}\00"

// rdar://16655340
int i;
typeof(@encode(typeof(i))) e = @encode(typeof(i));
const char * Test(void)
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/encode-test.m
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,13 @@ @implementation Derived1X @end
// CHECK: @g10 ={{.*}} constant [14 x i8] c"{f=i[4{?=}]i}\00"
const char g10[] = @encode(struct f);

// rdar://9622422
// CHECK: @g11 ={{.*}} constant [2 x i8] c"v\00"
const char g11[] = @encode(void);

// PR14628
// CHECK: @g12 ={{.*}} constant [3 x i8] c"Ai\00"
const char g12[] = @encode(_Atomic(int));

// rdar://15824769
id test_id = 0;
Class test_class = 0;
const char g13[] = @encode(__typeof__(*test_class));
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/exceptions-asm-attribute.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -Wno-objc-root-class -fexceptions -fobjc-exceptions -o %t %s
// RUN: FileCheck -check-prefix=CHECK-X86_64 < %t %s
// RUN: FileCheck -check-prefix=CHECK-EHTYPE < %t %s
// rdar://16462586

// We need exactly 3 of these.
// CHECK-EHTYPE: @"OBJC_EHTYPE_$_MySecretNamespace.EH3"
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/exceptions-nonfragile.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fexceptions -fobjc-exceptions -o - %s | FileCheck %s

// rdar://problem/8535238
// CHECK: declare void @objc_exception_rethrow()

void protos(void) {
Expand All @@ -16,7 +15,6 @@ void throwing(void) {
@throw(@"error!");
}

// rdar://problem/9431547
void die(void) __attribute__((nothrow, noreturn));
void test2(void) {
@try {
Expand Down
7 changes: 3 additions & 4 deletions clang/test/CodeGenObjC/exceptions.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -fobjc-exceptions -mllvm -simplifycfg-sink-common=false -O2 -o - %s | FileCheck %s
//
// <rdar://problem/7471679> [irgen] [eh] Exception code built with clang (x86_64) crashes
// [irgen] [eh] Exception code built with clang (x86_64) crashes

// Just check that we don't emit any dead blocks.
@interface NSArray @end
Expand Down Expand Up @@ -37,7 +37,7 @@ void f1(void) {
}

// Test that modifications to local variables are respected under
// optimization. rdar://problem/8160285
// optimization.

// CHECK-LABEL: define{{.*}} i32 @f2()
int f2(void) {
Expand Down Expand Up @@ -73,7 +73,7 @@ int f2(void) {
}

// Test that the cleanup destination is saved when entering a finally
// block. rdar://problem/8293901
// block.
// CHECK-LABEL: define{{.*}} void @f3()
void f3(void) {
extern void f3_helper(int, int*);
Expand Down Expand Up @@ -125,7 +125,6 @@ void f3(void) {
f3_helper(4, &x);
}

// rdar://problem/8440970
void f4(void) {
extern void f4_help(int);

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/extended-block-signature-encode.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fencode-extended-block-signature -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -emit-llvm %s -o - | FileCheck %s -check-prefix=CHECK-BRIEF
// rdar://12109031

@class NSString, NSArray;

Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/extern-void-class-decl.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.14.0 %s -emit-llvm -o - | FileCheck %s

// rdar://45077269

extern void OBJC_CLASS_$_f;
Class c = (Class)&OBJC_CLASS_$_f;

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/for-in.m
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,6 @@ void t1(void) {
}
}

// rdar://problem/9027663
void t2(NSArray *array) {
for (NSArray *array in array) { // expected-warning {{collection expression type 'NSArray *' may not respond}}
}
Expand Down
3 changes: 1 addition & 2 deletions clang/test/CodeGenObjC/forward-decl-param.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %clang_cc1 %s -emit-llvm -o -

// <rdar://problem/9123036> crash due to forward-declared struct in
// protocol method parameter.
// crash due to forward-declared struct in protocol method parameter.

@protocol P
- (void) A:(struct z) z;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/forward-protocol-metadata-symbols.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-10.14 -emit-llvm -x objective-c %s -o - | FileCheck %s
// rdar://16203115

@interface NSObject @end

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/gc-weak-attribute.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-gc -emit-llvm -o - %s | FileCheck %s
// rdar://10073896

@interface I
{
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/getter-property-mismatch.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm -triple x86_64-apple-darwin -o - | FileCheck %s
// rdar://11323676

@interface NSDictionary @end
@interface NSMutableDictionary : NSDictionary@end@interface CalDAVAddManagedAttachmentsTaskGroup {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/getter-property-type-mismatch.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// rdar://11515196

@interface NSArray @end

Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/instance-method-metadata.m
Original file line number Diff line number Diff line change
@@ -1,8 +1,6 @@
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S %s -o - | FileCheck %s

// rdar://9072317

/** The problem looks like clang getting confused when a single translation unit
contains a protocol with a property and two classes that implement that protocol
and synthesize the property.
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/ivar-base-as-invariant-load.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin -x objective-c %s -o - | FileCheck %s
// rdar://10840980

@interface A {
struct {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/ivar-layout-array0-struct.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: %clang_cc1 -fobjc-gc -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -S %s -o %t-64.s
// RUN: FileCheck -check-prefix CHECK-LP64 --input-file=%t-64.s %s

// rdar://8800513
@interface NSObject {
id isa;
}
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/ivar-layout-flexible-array.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin -Wno-objc-root-class -fobjc-arc -emit-llvm -o - %s | FileCheck %s

// rdar://problem/21054495
@interface FlexibleArrayMember {
char flexible_array[][4][2];
}
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/ivar-layout-nonfragile-abi2.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -emit-llvm -o %t %s
// rdar: // 7824380

@interface Super {
int ivar_super_a : 5;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/ivars.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s
// RUN: %clang_cc1 -fobjc-gc -emit-llvm -o - %s

// rdar://6800926
@interface ITF {
@public
unsigned field :1 ;
Expand All @@ -14,7 +13,6 @@ void foo(ITF *P) {
P->boolfield = 1;
}

// rdar://8368320
@interface R {
struct {
union {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/local-static-block.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -fblocks -triple x86_64-apple-darwin -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s
// rdar: // 8390455

// CHECK: @ArrayRecurs = internal global
// CHECK: @FUNC.ArrayRecurs = internal global
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/messages-2.m
Original file line number Diff line number Diff line change
Expand Up @@ -144,7 +144,6 @@ -(const float) returnAConstFloat {
}
@end

// rdar://problem/7854674
// CHECK: define{{.*}} void @test0(ptr
// CHECK-NF: define{{.*}} void @test0(ptr
void test0(A *x) {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/misc-atomic-property.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s
// rdar: //8808439

typedef struct {
#ifdef __LP64__
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/mrr-autorelease.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple i386-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s
// rdar://8881826
// rdar://9423507

@interface I
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@
// RUN: FileCheck --input-file=%t-64.layout %s
// RUN: %clang_cc1 -fblocks -fobjc-runtime-has-weak -fobjc-arc -triple i386-apple-darwin -print-ivar-layout -emit-llvm -o /dev/null %s > %t-32.layout
// RUN: FileCheck --input-file=%t-32.layout %s
// rdar://12184410
// rdar://12184410

void x(id y) {}
void y(int a) {}
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/next-objc-dispatch.m
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,6 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin9 -emit-llvm -o - %s \
// RUN: -fobjc-dispatch-method=mixed | \
// RUN: FileCheck -check-prefix CHECK-NONFRAGILE_MIXED %s
//
// <rdar://problem/7866951>

// There are basically four ways that we end up doing message dispatch for the
// NeXT runtime. They are:
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/no-vararg-messaging.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// REQUIRES: x86-registered-target
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -S -o - %s | FileCheck %s
// rdar://9048030

@interface Foo
+(id)alloc;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/ns_consume_null_check.m
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ +(instancetype)m0:(id) __attribute__((ns_consumed)) object;

MyObject *x;

// rdar://10444476
void test0(void) {
id obj = [NSObject new];
[x isEqual : obj];
Expand All @@ -29,7 +28,6 @@ void test0(void) {
// CHECK: phi i8 [ [[CALL]], {{%.*}} ], [ 0, {{%.*}} ]

// Ensure that we build PHIs correctly in the presence of cleanups.
// rdar://12046763
void test1(void) {
id obj = [NSObject new];
__weak id weakObj = obj;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/null-check-bool-ret.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -triple arm64e-apple-ios15.0.0 -emit-llvm-bc -fobjc-arc -disable-llvm-passes %s -emit-llvm -o - | FileCheck %s

// rdar://73361264

@protocol NSObject
@end

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/null-objc-empty-vtable.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.9 -emit-llvm -o - %s | FileCheck -check-prefix CHECK-OSX %s
// RUN: %clang_cc1 -triple thumbv7-apple-ios3.0.0 -emit-llvm -o - %s | FileCheck -check-prefix CHECK-IOS %s
// rdar://14802916

@interface I
@end
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/objc-alloc-init.m
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ -(void)instanceMeth {
}
@end

// rdar://48247290
@interface Base
-(instancetype)init;
@end
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/objc-asm-attribute-test.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm -triple x86_64-apple-darwin %s -o - | FileCheck %s
// rdar://16462586

__attribute__((objc_runtime_name("MySecretNamespace.Protocol")))
@protocol Protocol
Expand Down Expand Up @@ -44,7 +43,6 @@ + (void) ClsMethodP {}
+ (void) ClsMethodP2 {}
@end

// rdar://16877359
__attribute__((objc_runtime_name("foo")))
@interface SLREarth
- (instancetype)init;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/objc-dictionary-literal.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -x objective-c -triple x86_64-apple-darwin10 -fblocks -emit-llvm %s -o /dev/null
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fblocks -emit-llvm %s -o /dev/null
// rdar://10614657

@interface NSNumber
+ (NSNumber *)numberWithChar:(char)value;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/objc-literal-tests.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -x objective-c -triple x86_64-apple-darwin10 -fblocks -emit-llvm %s -o - | FileCheck %s
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin10 -fblocks -emit-llvm %s -o - | FileCheck %s
// rdar://10111397

#if __has_feature(objc_bool)
#define YES __objc_yes
Expand Down Expand Up @@ -86,7 +85,6 @@ int main(void) {
return __objc_yes == __objc_no;
}

// rdar://10579122
typedef BOOL (^foo)(void);
extern void bar(foo a);

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/objc2-nonfragile-abi-impl.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o %t %s
// rdar://7547942.

@interface Base @end

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/objc2-protocol-metadata.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-macosx10.10 -emit-llvm -o - %s | FileCheck %s
// rdar://20286356

@protocol P1
- InstP;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/objc2-strong-cast-block-import.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-gc-only -fblocks -emit-llvm -o - %s | FileCheck %s
// rdar://10150823

@interface Test {
@package
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/objc2-weak-ivar-debug.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
// RUN: %clang_cc1 -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -debug-info-kind=limited -emit-llvm -o - %s
// RUN: %clang_cc1 -x objective-c++ -triple i386-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -fobjc-gc -debug-info-kind=limited -emit-llvm -o - %s

// rdar://7252252
@interface Loop {
@public
__weak Loop *_loop;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/objc2-write-barrier-5.m
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ - (id)init {

@end

// rdar://10191569
@interface I
{
struct S {
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/optimize-ivar-offset-load.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -O0 -emit-llvm %s -o - | FileCheck %s
// rdar://16095748

@interface MyNSObject
@end
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/optimized-setter-ios-device.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm -fobjc-runtime=ios-6.0.0 -triple thumbv7-apple-ios6.0.0 -o - | FileCheck %s
// rdar://11915017

@interface I
// void objc_setProperty_nonatomic(id self, SEL _cmd, id newValue, ptrdiff_t offset);
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/optimized-setter.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %clang_cc1 %s -emit-llvm -fobjc-runtime=macosx-10.8 -triple x86_64-apple-macosx10.8.0 -o - | FileCheck %s
// RUN: %clang_cc1 %s -emit-llvm -fobjc-runtime=ios-6.0.0 -triple x86_64-apple-ios6.0.0 -o - | FileCheck %s
// RUN: %clang_cc1 %s -emit-llvm -fobjc-runtime=gnustep-1.7 -triple x86_64-unknown-freebsd -o - | FileCheck %s
// rdar://10179974

@interface I
// void objc_setProperty_nonatomic(id self, SEL _cmd, id newValue, ptrdiff_t offset);
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/os_log.m
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,6 @@
// cleanup. This way we make sure the object will not be released until the
// end of the full expression.

// rdar://problem/24528966

@interface C
- (id)m0;
+ (id)m1;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/overloadable.m
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
// rdar://6657613
// RUN: %clang_cc1 -triple %itanium_abi_triple -emit-llvm %s -o - | FileCheck %s

@class C;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/private-extern-selector-reference.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-ios6.0.0 -emit-llvm -o - %s | FileCheck %s
// rdar://18150301

@interface Query
+ (void)_configureCI;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/property-agrr-getter.m
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ float f (void)
return (obj.size).width;
}

// rdar://problem/9272392
void test3(AnObject *obj) {
obj.size;
(void) obj.size;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/property-array-type.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// rdar://15610943

struct _GLKMatrix4
{
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/property-ref-cast-to-void.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %clang_cc1 -no-enable-noundef-analysis -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -no-enable-noundef-analysis -x objective-c++ -triple x86_64-apple-darwin9 -fobjc-runtime=macosx-fragile-10.5 -emit-llvm -o - %s | FileCheck %s

// rdar: // 8399655
@interface TestClass
@property (readonly) int myProperty;
- (int)myProperty;
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/property-section-attribute.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// rdar://15450637.

@interface NSObject @end

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/property-type-mismatch.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// rdar://8966864

@interface Foo
-(float)myfo;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/property.m
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,6 @@ @implementation Test5
@synthesize x = _x;
@end

// rdar://problem/10410531
@interface Test6
@property void (*prop)(void);
@end
Expand All @@ -119,7 +118,6 @@ void test6(Test6 *a) {
a.prop = test6_func;
}

// rdar://problem/10507455
@interface Test7
@property unsigned char x;
@end
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/protocols.m
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,6 @@ int main(void) {
return 0;
}

// rdar://problem/7992749
typedef Root<P1> P1Object;
int test10(void) {
return [P1Object maxValue];
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/reorder-synthesized-ivars.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -x objective-c %s -o - | FileCheck %s
// rdar://13192366
typedef signed char BOOL;
@interface NSObject
{
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/runtime-fns.m
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@ id objc_msgSend(int x) {
return 0;
}

// rdar://6800430
void objc_assign_weak(id value, id *location) {
}

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/sel-as-builtin-type.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -emit-llvm -o %t %s
// pr5025
// radar 7405040

typedef const struct objc_selector {
void *sel_id;
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/selector-ref-invariance.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin11 -emit-llvm -fblocks -o - %s | FileCheck %s

// rdar://6027699

void test(id x) {
// CHECK: load ptr, ptr @OBJC_SELECTOR_REFERENCES_, align 8, !invariant.load
// CHECK: @objc_msgSend
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenObjC/simplify-exceptions.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
// RUN: -o %t %s
// RUN: FileCheck < %t %s
//
// <rdar://problem/7471679> [irgen] [eh] Exception code built with clang (x86_64) crashes
// [irgen] [eh] Exception code built with clang (x86_64) crashes

// Check that we don't emit unnecessary personality function references.
struct t0_A { t0_A(); };
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/stand-alone-implementation.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck -check-prefix=CHECK-X86-64 %s

// radar 7547942
// Allow injection of ivars into implementation's implicit class.

@implementation INTFSTANDALONE // expected-warning {{cannot find interface declaration for 'INTFSTANDALONE'}}
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/stret-1.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -fblocks -triple arm64-apple-darwin %s -emit-llvm -o - | FileCheck %s
// rdar://12416433

struct stret { int x[100]; };
struct stret one = {{1}};
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenObjC/stret.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// RUN: %clang_cc1 -fblocks -triple arm-apple-darwin %s -emit-llvm -o - | FileCheck %s -check-prefix=ARM
// RUN: %clang_cc1 -fblocks -triple arm64-apple-darwin %s -emit-llvm -o - | FileCheck %s -check-prefix=ARM64

// <rdar://problem/9757015>: Don't use 'stret' variants on ARM64.
// Don't use 'stret' variants on ARM64.

// X86: @main
// X86: @objc_msgSend_stret
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjC/super-dotsyntax-struct-property.m
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm %s -o - | FileCheck %s
// rdar: // 8203426


typedef double CGFloat;
struct CGPoint {
Expand Down
2 changes: 1 addition & 1 deletion clang/test/CodeGenObjC/synthesize_ivar.m
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ @implementation OrganizerViolatorView
@synthesize bindingInfo;
@end

// <rdar://problem/7336352> [irgen] crash in synthesized property construction
// [irgen] crash in synthesized property construction

@interface I0 @end
@protocol P0 @end
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/tentative-cfconstantstring.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// rdar://13598026

@interface NSObject @end

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/terminate.m
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@

void destroy(void**);

// rdar://problem/9519113
void test0(void) {
void test0_helper(void);
void *ptr __attribute__((cleanup(destroy)));
Expand Down
4 changes: 2 additions & 2 deletions clang/test/CodeGenObjC/try.m
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
// RUN: %clang_cc1 %s -fobjc-exceptions -S -o - -triple=i686-apple-darwin9
// RUN: %clang_cc1 %s -fobjc-exceptions -S -o - -triple=x86_64-apple-darwin9

// rdar://6757213 - Don't crash if the internal proto for
// __objc_personality_v0 mismatches with an actual one.
// Don't crash if the internal proto for __objc_personality_v0 mismatches with
// an actual one.
void __objc_personality_v0() { }
void test1(void) {
@try { } @catch (...) { }
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjC/unoptimized-setter.m
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 %s -emit-llvm -fobjc-runtime=macosx-10.6.0 -triple x86_64-apple-macosx10.6.0 -o - | FileCheck %s
// rdar://11858187

@interface I
// void objc_setProperty_nonatomic(id self, SEL _cmd, id newValue, ptrdiff_t offset);
Expand Down
4 changes: 2 additions & 2 deletions clang/test/CodeGenObjC/unqual-copy-restore.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
// RUN: %clang_cc1 %s -fobjc-arc -S -emit-llvm -o /dev/null

// rdar://problem/28488427 - Don't crash if the argument type and the parameter
// type in an indirect copy restore expression have different qualification.
// Don't crash if the argument type and the parameter type in an indirect copy
// restore expression have different qualification.
@protocol P1
@end

Expand Down
3 changes: 0 additions & 3 deletions clang/test/CodeGenObjC/weak-metaclass-visibility.m
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple armv7-apple-darwin10 -emit-llvm -o - %s | FileCheck %s
// RUN: %clang_cc1 -triple arm64-apple-ios -emit-llvm -o - %s | FileCheck %s
// rdar://16206443

@interface NSObject
- (void) finalize;
Expand Down Expand Up @@ -34,7 +33,6 @@ void kit(void)
// CHECK: @"OBJC_METACLASS_$_MyClass" ={{.*}} global %struct._class_t
// CHECK: @"OBJC_CLASS_$_NSObject" = external global %struct._class_t

// rdar://16529125
__attribute__((weak_import))
@interface NSURLQueryItem : NSObject
@end
Expand All @@ -46,7 +44,6 @@ +(void)classmethod { [super class]; }
// CHECK: @"OBJC_METACLASS_$_NSURLQueryItem" = extern_weak global
// CHECK: @"OBJC_CLASS_$_NSURLQueryItem" = extern_weak global

// rdar://17633301
__attribute__((visibility("default"))) __attribute__((availability(ios,introduced=9876.5)))
@interface AVScheduledAudioParameters @end

Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjCXX/arc-blocks.mm
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@

// CHECK: [[LAYOUT0:@.*]] = private unnamed_addr constant [3 x i8] c" 9\00"

// rdar://13045269
// If a __block variable requires extended layout information *and*
// a copy/dispose helper, be sure to adjust the offsets used in copy/dispose.
namespace test0 {
Expand Down
2 changes: 0 additions & 2 deletions clang/test/CodeGenObjCXX/arc-cxx11-member-init.mm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -fobjc-arc -std=c++11 -emit-llvm -o - %s | FileCheck %s
// rdar://16299964

@interface NSObject
+ (id)new;
Expand Down Expand Up @@ -28,7 +27,6 @@ - (void)applicationDidFinishLaunching
// CHECK: [[CALL:%.*]] = call noundef ptr @objc_msgSend(ptr noundef [[CLS]], ptr noundef [[SEL]])
// CHECK: store ptr [[CALL]], ptr [[mClipData]], align 8

// rdar://18950072
struct Butt { };

__attribute__((objc_root_class))
Expand Down
3 changes: 1 addition & 2 deletions clang/test/CodeGenObjCXX/arc-exceptions.mm
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

@class Ety;

// These first four tests are all PR11732 / rdar://problem/10667070.
// These first four tests are all PR11732.

void test0_helper(void);
void test0(void) {
Expand Down Expand Up @@ -104,7 +104,6 @@ void test3(void) {
// CHECK: resume
}

// rdar://21397946
__attribute__((ns_returns_retained)) id test5_helper(unsigned);
void test5(void) {
id array[][2] = {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -triple x86_64-apple-darwin10 -emit-llvm -fobjc-arc -o - %s | FileCheck %s
// rdar://10139365

@interface Test58
- (char* &) interior __attribute__((objc_returns_inner_pointer));
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjCXX/arc-weak.mm
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
__attribute((objc_root_class)) @interface A @end
@interface B : A @end

// rdar://problem/23559789
// Ensure that type differences don't cause an assert here.
void test0(__weak B **src) {
__weak A *dest = *src;
Expand Down
6 changes: 0 additions & 6 deletions clang/test/CodeGenObjCXX/arc.mm
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ - (unsigned long) countByEnumeratingWithState: (struct NSFastEnumerationState*)

void use(id);

// rdar://problem/9315552
// The analogous ObjC testcase test46 in arr.m.
void test0(__weak id *wp, __weak volatile id *wvp) {
extern id test0_helper(void);
Expand All @@ -38,7 +37,6 @@ void test0(__weak id *wp, __weak volatile id *wvp) {
id y = *wvp = test0_helper();
}

// rdar://problem/9320648
struct Test1_helper { Test1_helper(); };
@interface Test1 @end
@implementation Test1 { Test1_helper x; } @end
Expand Down Expand Up @@ -190,7 +188,6 @@ void test35b(Test35_Helper x0, Test35_Helper *x0p) {
// CHECK-NEXT: ret void
}

// rdar://problem/9603128
// CHECK-LABEL: define{{.*}} ptr @_Z6test36P11objc_object(
id test36(id z) {
// CHECK: llvm.objc.retain
Expand All @@ -200,7 +197,6 @@ id test36(id z) {
return z;
}

// Template instantiation side of rdar://problem/9817306
@interface Test37
+ alloc;
- init;
Expand Down Expand Up @@ -269,7 +265,6 @@ void test(T x) {
// CHECK-LABEL: define weak_odr void @_ZN6Test38IiE4testEi(
template class Test38<int>;

// rdar://problem/11964832
class Test39_base1 {
virtual void foo();
};
Expand All @@ -285,7 +280,6 @@ void test(T x) {
// CHECK: call noundef ptr @_ZN6Test393barEv(
// CHECK-NEXT: ret ptr

// rdar://13617051
// Just a basic correctness check that IR-gen still works after instantiating
// a non-dependent message send that requires writeback.
@interface Test40
Expand Down
1 change: 0 additions & 1 deletion clang/test/CodeGenObjCXX/block-in-template-inst.mm
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
// RUN: %clang_cc1 -emit-llvm-only -std=c++11 -fblocks -o - -triple x86_64-apple-darwin10 -fobjc-runtime=macosx-fragile-10.5 %s
// rdar://9362021

@class DYFuture;
@interface NSCache
Expand Down
Loading