diff --git a/clang/test/SemaCXX/dependent-typeof.cpp b/clang/test/SemaCXX/dependent-typeof.cpp new file mode 100644 index 000000000000000..abfbf4a24081eb4 --- /dev/null +++ b/clang/test/SemaCXX/dependent-typeof.cpp @@ -0,0 +1,10 @@ +// RUN: %clang_cc1 -fsyntax-only -verify %s +// expected-no-diagnostics + +template +void f() { + decltype(B) x = false; + __typeof__(B) y = false; + !x; + !y; +}