11 lines · plain
1// RUN: %clang_cc1 -finclude-default-header -triple dxil-pc-shadermodel6.6-library %s -verify2 3// expected-no-diagnostics4 5// Because asuint should be constant evaluated, all the static asserts below6// should work!7void ConstExprTest() {8 static_assert(asuint(1) == 1u, "One");9 static_assert(asuint(2.xxx).y == 2u, "Two");10}11