1 // RUN: %clang_cc1 -fsyntax-only -verify %s
2 // expected-no-diagnostics
4 constexpr int test_clzg_0() {
6 (void)__builtin_clzg(0U, ++x
);
10 static_assert(test_clzg_0() == 1);
12 constexpr int test_clzg_1() {
14 (void)__builtin_clzg(1U, ++x
);
18 static_assert(test_clzg_1() == 1);
20 constexpr int test_ctzg_0() {
22 (void)__builtin_ctzg(0U, ++x
);
26 static_assert(test_ctzg_0() == 1);
28 constexpr int test_ctzg_1() {
30 (void)__builtin_ctzg(1U, ++x
);
34 static_assert(test_ctzg_1() == 1);