1 // RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2 // expected-no-diagnostics
4 // Make sure we correctly treat __typeof as potentially-evaluated when appropriate
5 template<typename T
> void f(T n
) {
7 [&buffer
] { __typeof(buffer
) x
; }();