aboutsummaryrefslogtreecommitdiff
path: root/test/Modules/pr28812.cpp
blob: 78267d2a4b44a9783443893f5639ce9a01804629 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// 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