You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

23 lines
586 B

// RUN: rm -rf %t
// RUN: %clang_cc1 -std=c++11 -nostdsysteminc -I%S/Inputs/PR28812 -verify %s
// RUN: %clang_cc1 -std=c++11 -nostdsysteminc -fmodules -fimplicit-module-maps \
// RUN: -fmodules-cache-path=%t -I%S/Inputs/PR28812 -verify %s
template <typename> struct VarStreamArrayIterator;
template <typename ValueType>
struct VarStreamArray {
typedef VarStreamArrayIterator<ValueType> Iterator;
Iterator begin() { return Iterator(*this); }
};
#include "Textual.h"
#include "a.h"
#include "b.h"
VarStreamArray<int> a;
auto b = a.begin();
// expected-no-diagnostics