mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-25 14:28:54 -04:00

Also, a number of style and bug fixes was done: * ASTImporterTest: added sanity check for source node * ExternalASTMerger: better lookup for template specializations * ASTImporter: don't add templated declarations into DeclContext * ASTImporter: introduce a helper, ImportTemplateArgumentListInfo getting SourceLocations * ASTImporter: proper set ParmVarDecls for imported FunctionProtoTypeLoc Differential Revision: https://reviews.llvm.org/D42301 llvm-svn: 323519
11 lines
200 B
C++
11 lines
200 B
C++
// RUN: clang-import-test -import %S/Inputs/T.cpp -expression %s
|
|
|
|
void expr() {
|
|
A<int>::B b1;
|
|
A<bool>::B b2;
|
|
b1.f + b2.g;
|
|
}
|
|
|
|
static_assert(f<char>() == 0, "");
|
|
static_assert(f<int>() == 4, "");
|