================
@@ -0,0 +1,87 @@
+// RUN: clang-tblgen -I %p/../../include/ %s --gen-clang-builtins | FileCheck
%s
+// RUN: not clang-tblgen -I %p/../../include/ %s --gen-clang-builtins
-DERROR_INDEX 2>&1 | FileCheck %s --check-prefix=ERROR_INDEX
+// RUN: not clang-tblgen -I %p/../../include/ %s --gen-clang-builtins
-DERROR_NEGATIVE_INDEX 2>&1 | FileCheck %s --check-prefix=ERROR_NEGATIVE_INDEX
+// RUN: not clang-tblgen -I %p/../../include/ %s --gen-clang-builtins
-DERROR_NOT_CONSTANT 2>&1 | FileCheck %s --check-prefix=ERROR_NOT_CONSTANT
+// RUN: not clang-tblgen -I %p/../../include/ %s --gen-clang-builtins
-DERROR_EMPTY 2>&1 | FileCheck %s --check-prefix=ERROR_EMPTY
+// RUN: not clang-tblgen -I %p/../../include/ %s --gen-clang-builtins
-DERROR_DUPLICATE 2>&1 | FileCheck %s --check-prefix=ERROR_DUPLICATE
+// RUN: not clang-tblgen -I %p/../../include/ %s --gen-clang-builtins
-DERROR_UPPER_OVERFLOW 2>&1 | FileCheck %s --check-prefix=ERROR_UPPER_OVERFLOW
+// RUN: not clang-tblgen -I %p/../../include/ %s --gen-clang-builtins
-DERROR_LOWER_OVERFLOW 2>&1 | FileCheck %s --check-prefix=ERROR_LOWER_OVERFLOW
+
+include "clang/Basic/BuiltinsBase.td"
+
+def : Builtin {
+// CHECK: Builtin::Info{{.*}} __builtin_one_range {{.*}} /* nR<1:0:4> */
----------------
fpetrogalli wrote:
I'd prefer to see the explicit deterministic output here, not all these
`{{.*}}`, even by naming the defs in the test if necessary.
https://github.com/llvm/llvm-project/pull/241583
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits