Changeset View
Changeset View
Standalone View
Standalone View
cfe/trunk/test/CodeGenCXX/constructor-destructor-return-this.cpp
//RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-unknown-linux | FileCheck --check-prefix=CHECKGEN %s | //RUN: %clang_cc1 %s -emit-llvm -o - -triple=i686-unknown-linux | FileCheck --check-prefix=CHECKGEN %s | ||||
//RUN: %clang_cc1 %s -emit-llvm -o - -triple=thumbv7-apple-ios6.0 -target-abi apcs-gnu | FileCheck --check-prefix=CHECKARM %s | //RUN: %clang_cc1 %s -emit-llvm -o - -triple=thumbv7-apple-ios6.0 -target-abi apcs-gnu | FileCheck --check-prefix=CHECKARM %s | ||||
//RUN: %clang_cc1 %s -emit-llvm -o - -triple=thumbv7-apple-ios5.0 -target-abi apcs-gnu | FileCheck --check-prefix=CHECKIOS5 %s | //RUN: %clang_cc1 %s -emit-llvm -o - -triple=thumbv7-apple-ios5.0 -target-abi apcs-gnu | FileCheck --check-prefix=CHECKIOS5 %s | ||||
//RUN: %clang_cc1 %s -emit-llvm -o - -triple=wasm32-unknown-unknown \ | |||||
//RUN: | FileCheck --check-prefix=CHECKARM %s | |||||
//RUN: %clang_cc1 %s -emit-llvm -o - -triple=i386-pc-win32 -fno-rtti | FileCheck --check-prefix=CHECKMS %s | //RUN: %clang_cc1 %s -emit-llvm -o - -triple=i386-pc-win32 -fno-rtti | FileCheck --check-prefix=CHECKMS %s | ||||
// FIXME: these tests crash on the bots when run with -triple=x86_64-pc-win32 | // FIXME: these tests crash on the bots when run with -triple=x86_64-pc-win32 | ||||
// Make sure we attach the 'returned' attribute to the 'this' parameter of | // Make sure we attach the 'returned' attribute to the 'this' parameter of | ||||
// constructors and destructors which return this (and only these cases) | // constructors and destructors which return this (and only these cases) | ||||
class A { | class A { | ||||
public: | public: | ||||
▲ Show 20 Lines • Show All 128 Lines • Show Last 20 Lines |