23 lines · cpp
1// RUN: rm -rf %t2// RUN: %clang_cc1 -std=c++11 -nostdsysteminc -I%S/Inputs/PR28812 -verify %s3// RUN: %clang_cc1 -std=c++11 -nostdsysteminc -fmodules -fimplicit-module-maps \4// RUN: -fmodules-cache-path=%t -I%S/Inputs/PR28812 -verify %s5 6template <typename> struct VarStreamArrayIterator;7template <typename ValueType>8struct VarStreamArray {9 typedef VarStreamArrayIterator<ValueType> Iterator;10 Iterator begin() { return Iterator(*this); }11};12 13#include "Textual.h"14 15#include "a.h"16#include "b.h"17 18VarStreamArray<int> a;19auto b = a.begin();20 21// expected-no-diagnostics22 23