Skip to content

Commit

Permalink
[FOLD] add tests
Browse files Browse the repository at this point in the history
  • Loading branch information
sdkrystian committed Jul 23, 2024
1 parent 5cefdde commit d60492d
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions clang/test/SemaCXX/dependent-typeof.cpp
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
// RUN: %clang_cc1 -fsyntax-only -verify %s
// expected-no-diagnostics

template<bool B>
void f() {
decltype(B) x = false;
__typeof__(B) y = false;
!x;
!y;
}

0 comments on commit d60492d

Please sign in to comment.