blob: ad27567fcd6469f421274dea41bf5c30eae7d735 [file] [log] [blame]
// RUN: %clang_cc1 -std=c++11 -fsyntax-only -verify -std=c++11 %s
// expected-no-diagnostics
namespace PR26599 {
template <typename>
struct S;
struct I {};
template <typename T>
void *&non_pointer() {
void *&r = S<T>()[I{}];
return r;
}
template <typename T>
void *&pointer() {
void *&r = S<T>()[nullptr];
return r;
}
}