blob: 80b18467a364ef1a91a25932644153f5829655b9 [file] [log] [blame]
// RUN: clang-cc -fsyntax-only -verify %s
template <class T> struct A {
static T cond;
template <class U> struct B {
static T twice(U value) {
return (cond ? value + value : value);
}
};
};
int foo() {
A<bool>::cond = true;
return A<bool>::B<int>::twice(4);
}