[flang][cuda] Adapt ExternalNameConversion to work in gpu module (#117039)
[llvm-project.git] / clang / test / AST / ast-dump-udl-consteval.cpp
blob9da53f725172ababd47c106f07184480f41fa195
1 // RUN: %clang_cc1 -xc++ -std=c++23 -ast-dump %s | FileCheck %s
3 int inline consteval operator""_u32(unsigned long long val) {
4 return val;
7 void udl() {
8 (void)(0_u32 + 1_u32);
11 // CHECK: `-BinaryOperator {{.+}} <col:10, col:18> 'int' '+'
12 // CHECK-NEXT: |-ConstantExpr {{.+}} <col:10> 'int'
13 // CHECK-NEXT: | |-value: Int 0
14 // CHECK-NEXT: | `-UserDefinedLiteral {{.+}} <col:10> 'int'
15 // CHECK: `-ConstantExpr {{.+}} <col:18> 'int'
16 // CHECK-NEXT: |-value: Int 1
17 // CHECK-NEXT: `-UserDefinedLiteral {{.+}} <col:18> 'int'