1// RUN: %clang_cc1 -fsyntax-only -verify -std=c++11 %s
2
3// Make sure we handle contexts correctly with sizeof
4template<typename T> void f(T n) {
5  int buffer[n];
6  [] { int x = sizeof(sizeof(buffer)); }();
7}
8int main() {
9  f<int>(1);
10}
11