clang/test/SemaCXX/GH190333.cpp
raw| 1 | // RUN: %clang_cc1 -std=c++20 -fsyntax-only -verify %s |
| 2 | |
| 3 | template <typename... T> requires ((sizeof(T) > 0) && ...) void f() {} // expected-note{{previous definition is here}} |
| 4 | class A; |
| 5 | void operator&&(A, A); |
| 6 | template <typename... T> requires ((sizeof(T) > 0) && ...) void f() {} // expected-error{{redefinition of 'f'}} |