llvm-project/clang/test
Anders Carlsson 78cfaa9e56 Fix two bugs with temporaries:
1. For 

A f() {
	return A();
}

we were incorrectly calling the A destructor on the returned object.

2. For

void f(A);
void g() {
	A a;
	f(a);
}

we were incorrectly not calling the copy constructor.

llvm-svn: 87082
2009-11-13 04:34:45 +00:00
..
Analysis Split buffer overflow test case into two test cases, removing out logic that was commented out. 2009-11-11 17:17:06 +00:00
CXX Improve diagnostics when a default template argument does not match 2009-11-11 21:54:23 +00:00
CodeCompletion Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
CodeGen And now a test fix in +Asserts mode, which I broke. 2009-11-11 03:48:34 +00:00
CodeGenCXX Fix two bugs with temporaries: 2009-11-13 04:34:45 +00:00
CodeGenObjC Fix a code gen bug in i386-apple-darwin (objc fragile abi), sending 2009-11-12 20:14:24 +00:00
Coverage Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
Driver Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
FixIt When trying to assign a regular string literal to an Objective-C 'id' type or a pointer to an NSString, emit a code insertion hint that turns it into an Objective-C string. For example: 2009-11-10 04:46:30 +00:00
Frontend Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
Index Make sure that we look into nested, transparent declaration contexts 2009-11-09 21:35:27 +00:00
Lexer Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
Misc Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
PCH Fix PCH/preprocess test to be more useful, and unbreak -E mode with implicit 2009-11-12 01:36:20 +00:00
Parser Remove RUN: true lines. 2009-11-08 01:47:25 +00:00
Preprocessor Generalize stdint.h for non-8-bit-multiple types, patch by 2009-11-12 08:08:27 +00:00
Rewriter Eliminate &&s in tests. 2009-11-08 01:45:36 +00:00
Sema Fix PR 5422: handle lvalue results when evaluating 'based' ptrtoints as part of 2009-11-11 22:52:37 +00:00
SemaCXX Make test more platform independent (per Sebastian's comment). 2009-11-11 22:45:41 +00:00
SemaObjC Add <foo> = [<bar> nextObject] to the -Widiomatic-parentheses category, 2009-11-12 00:06:05 +00:00
SemaObjCXX Switch XFAIL format to match LLVM. 2009-11-03 07:25:45 +00:00
SemaTemplate Recognize (and check) pointer-to-member template arguments that are 2009-11-12 18:38:13 +00:00
CMakeLists.txt Simplify. 2009-11-08 09:46:39 +00:00
Makefile Add clang_site_config user variable, so that extra tests (e.g., utils/C++Syntax) 2009-11-05 16:36:19 +00:00
TestRunner.sh Switch TestRunner.sh to just use 'lit'. 2009-09-20 22:00:23 +00:00
cxx-sections.data Update C++ section data and directory structure to reflect N2914 2009-06-30 16:45:27 +00:00
lit.cfg Drop require_and_and argument. 2009-11-08 01:47:35 +00:00
lit.site.cfg.in Rework site config for cmake to be generated at configure time, and only pass 2009-11-07 23:53:32 +00:00
make_test_dirs.pl Add the structure for a C++ test suite that mimics the structure of the C++ standard 2009-06-13 06:06:53 +00:00