================
@@ -0,0 +1,25 @@
+// RUN: %clang_cc1 -std=c++26 -triple x86_64-unknown-linux-gnu -fclangir 
-emit-cir %s -o %t.cir
+// RUN: FileCheck --check-prefix=CIR --input-file=%t.cir %s
+// RUN: %clang_cc1 -std=c++26 -triple x86_64-unknown-linux-gnu -fclangir 
-emit-llvm %s -o %t-cir.ll
+// RUN: FileCheck --check-prefixes=LLVM,LLVMCIR --input-file=%t-cir.ll %s
+// RUN: %clang_cc1 -std=c++26 -triple x86_64-unknown-linux-gnu -emit-llvm %s 
-o %t.ll
+// RUN: FileCheck --check-prefixes=LLVM,OGCG --input-file=%t.ll %s
+
+constexpr signed _BitInt(128) ci128 = 1234;
+const signed _BitInt(128) *pci = &ci128;
+
+unsigned _BitInt(17) f() {
+  static constexpr unsigned _BitInt(17) sl = 100;
+  return sl;
+}
+
+// CIR-DAG: cir.global "private" constant internal dso_local @_ZL5ci128 = 
#cir.int<1234> : !s128i_bitint
----------------
erichkeane wrote:

A LITTLE awkward maybe that we are separately naming our 'bit-int' types, but 
perhaps useful for now.  I have to think on this...

https://github.com/llvm/llvm-project/pull/205605
_______________________________________________
cfe-commits mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits

Reply via email to