Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / clang / test / SemaTemplate / nested-incomplete-class.cpp
bloba4bfccb8d2798f02db54de43f8f8f1599e7f4fe7
1 // RUN: %clang_cc1 -fsyntax-only %s
3 template <typename T>
4 struct foo {
5 struct bar;
7 bar fn() {
8 // Should not get errors about bar being incomplete here.
9 bar b = bar(1, 2);
10 return b;
14 template <typename T>
15 struct foo<T>::bar {
16 bar(int, int);
19 void fn() {
20 foo<int>().fn();