2021-03-26 08:05:36 +08:00
|
|
|
// RUN: %clang_cc1 -ast-print -std=c++20 %s -o - -triple x86_64-linux | FileCheck %s
|
2021-10-15 23:29:55 +08:00
|
|
|
// RUN: %clang_cc1 -ast-print -std=c++20 %s -o - -triple powerpc64-ibm-aix-xcoff | FileCheck %s
|
2021-03-26 05:27:13 +08:00
|
|
|
|
|
|
|
template <bool>
|
|
|
|
struct enable_if {
|
|
|
|
};
|
|
|
|
|
|
|
|
template <__uint128_t x, typename = typename enable_if<x != 0>::type>
|
|
|
|
void f();
|
|
|
|
|
|
|
|
template <__int128_t>
|
|
|
|
void f();
|
|
|
|
|
|
|
|
using T = decltype(f<0>());
|
|
|
|
|
|
|
|
// CHECK: using T = decltype(f<0>());
|