mirror of
https://github.com/Gericom/teak-llvm.git
synced 2025-06-19 11:35:51 -04:00

This allows you to dump C++ code that spells bool instead of _Bool, leaves off the elaborated type specifiers when printing struct or class names, and other C-isms. Fixes the -Wreorder issue and fixes the ast-dump-color.cpp test. llvm-svn: 321310
20 lines
511 B
C++
20 lines
511 B
C++
// RUN: %clang_cc1 -ast-dump %s 2>&1 | FileCheck %s
|
|
|
|
// This is a wacky test to ensure that we're actually instantiating
|
|
// the default arguments of the constructor when the function type is
|
|
// otherwise non-dependent.
|
|
namespace PR6733 {
|
|
template <class T>
|
|
class bar {
|
|
public: enum { kSomeConst = 128 };
|
|
bar(int x = kSomeConst) {}
|
|
};
|
|
|
|
// CHECK: FunctionDecl{{.*}}f 'void ()'
|
|
void f() {
|
|
// CHECK: VarDecl{{.*}}tmp 'bar<int>'
|
|
// CHECK: CXXDefaultArgExpr{{.*}}'int'
|
|
bar<int> tmp;
|
|
}
|
|
}
|