blob: b1d477def387d7c7d2ed5b70688acd3e838d92e0 [file] [log] [blame]
// { dg-additional-options "-fmodules-ts -fconcepts" }
export module foo;
// { dg-module-cmi foo }
export template<typename T>
requires (sizeof (T) == 1)
char f1 (T x) { return 0; }
export template<typename T>
requires (sizeof (T) != 1)
int f1 (T x) { return 0; }
void foo (int i, char c)
{
static_assert (sizeof (f1 (i)) == sizeof (int));
static_assert (sizeof (f1 (c)) == sizeof (char));
}