llvm-capstone/clang/test/Modules/nested-template-default-arg-redecl.cpp
David Blaikie 07489f9ccf Modules: Adopt template parameters for variable templates to set their decl context correctly
Exposed by a related bug about visibility of default arguments of nested
templates - without the correct decl context, default template
parameters of variable templates nested in classes would have incorrect
visibility computed.

llvm-svn: 358796
2019-04-19 23:04:05 +00:00

17 lines
467 B
C++

// RUN: rm -rf %t
// RUN: %clang_cc1 -x c++ -fmodules -fimplicit-module-maps -fmodules-cache-path=%t \
// RUN: -I %S/Inputs/nested-template-default-arg-redecl -std=c++14 \
// RUN: -fmodules-local-submodule-visibility -w -verify %s
// expected-no-diagnostics
#include "alias2.h"
#include "var2.h"
#include "strct2.h"
#include "func2.h"
auto var = &var_outer::var<>;
auto func = &func_outer::func<>;
strct_outer::strct<> *strct;
alias_outer::alias<> *alias;