summaryrefslogtreecommitdiffstats
path: root/clang/test/SemaTemplate/example-dynarray.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Removing example-dynarray.cpp test since it's of no value.Jyotsna Verma2013-04-241-178/+0
| | | | llvm-svn: 180208
* XFAIL example-dynarray.cpp test for Hexagon as some of the header filesJyotsna Verma2013-04-041-0/+1
| | | | | | are unavailable on Hexagon. llvm-svn: 178791
* tests: Use %clangxx when using driver for C++, in case C++ support is disabled.Daniel Dunbar2010-06-291-1/+1
| | | | llvm-svn: 107153
* Update tests to use %clang instead of 'clang', and forcibly disable use of 'Daniel Dunbar2009-12-151-1/+1
| | | | | | | clang ' or ' clang -cc1 ' or ' clang-cc ' in test lines (by substituting them to garbage). llvm-svn: 91460
* Use clang to run tests which include headers from the system.Daniel Dunbar2009-11-171-1/+1
| | | | llvm-svn: 89085
* Fixed for running on Windows.John Thompson2009-11-041-1/+1
| | | | llvm-svn: 86053
* Don't generate any code for an explicit call to a trivial destructor. Douglas Gregor2009-09-041-4/+10
| | | | | | | | | | | Now that parsing, semantic analysis, and (I think) code generation of pseudo-destructor expressions and explicit destructor calls works, update the example-dynarray.cpp test to destroy the objects it allocates and update the test to actually compile + link. The code seems correct, but the Clang-compiled version dies with a malloc error. Time to debug! llvm-svn: 81025
* Test template instantiation for member functions of class templates definedDouglas Gregor2009-07-221-24/+27
| | | | | | out of line. llvm-svn: 76740
* Implement implicit instantiation of the member functions of a class templateDouglas Gregor2009-06-221-5/+23
| | | | | | | specialization. At present, all implicit instantiations occur at the end of the translation unit. llvm-svn: 73915
* After spending 15 minutes trying to figure out why this was crashing, I ↵Anders Carlsson2009-06-011-1/+1
| | | | | | realized it was a bug in the test case :) llvm-svn: 72680
* Fix usage of placement new. Placement new is not actually declared implicitly.Sebastian Redl2009-05-291-13/+15
| | | | llvm-svn: 72576
* Add the missing public: thanks, FariborzDouglas Gregor2009-05-281-0/+1
| | | | llvm-svn: 72528
* Improve name lookup for and template instantiation of declarationDouglas Gregor2009-05-271-5/+0
| | | | | | | | | | | | | | | | | | | | | | | references. There are several smallish fixes here: - Make sure we look through template parameter scope when determining whether we're parsing a nested class (or nested class *template*). This makes sure that we delay parsing the bodies of inline member functions until after we're out of the outermost class (template) scope. - Since the bodies of member functions are always parsed "out-of-line", even when they were declared in-line, teach unqualified name lookup to look into the (semantic) parents. - Use the new InstantiateDeclRef to handle the instantiation of a reference to a declaration (in DeclRefExpr), which drastically simplifies template instantiation for DeclRefExprs. - When we're instantiating a ParmVarDecl, it must be in the current instantiation scope, so only look there. Also, remove the #if 0's and FIXME's from the dynarray example, which now compiles and executes thanks to Anders and Eli. llvm-svn: 72481
* Initial stab at a generalized operation for determining theDouglas Gregor2009-05-271-6/+7
| | | | | | | | | | | | instantiation of a declaration from the template version (or version that lives in a template) and a given set of template arguments. This needs much, much more testing, but it suffices for simple examples like typedef T* iterator; iterator begin(); llvm-svn: 72461
* A simple dynamic array class template, to be used as a test-bed for template ↵Douglas Gregor2009-05-261-0/+151
instantiation llvm-svn: 72437
OpenPOWER on IntegriCloud