[clang] Implement lifetime analysis for lifetime_capture_by(X) (#115921)
[llvm-project.git] / clang / test / SemaCXX / typeof.cpp
blob421cfc59f53117ee6d38da607a65c823062a8095
1 // RUN: %clang_cc1 -fsyntax-only -verify %s
3 typeof_unqual(int) u = 12; // expected-error {{expected function body after function declarator}}
4 __typeof_unqual(int) _u = 12;
5 __typeof_unqual__(int) __u = 12;
7 namespace GH97646 {
8 template<bool B>
9 void f() {
10 __typeof__(B) x = false;
11 !x;