brintos

brintos / llvm-project-archived public Read only

0
0
Text · 710 B · 378ae21 Raw
33 lines · cpp
1// RUN: %clang_cc1 -std=c++20 -triple x86_64-unknown-linux-gnu -fclangir -emit-cir %s -o %t.cir2// RUN: FileCheck --input-file=%t.cir %s --check-prefix=CIR3 4// These declarations shouldn't emit any code. Therefore the module is expected to be empty.5 6template<typename T>7concept some_concept = true;8 9template<some_concept T>10class class_template {};11 12; // Empty declaration13 14template<typename T>15void function_template();16 17static_assert(true, "top level static assert");18 19template<typename T>20using type_alias = T;21 22namespace N {23    using ::class_template; // UsingShadow24}25 26template<typename T>27struct deduction_guide {};28 29deduction_guide() -> deduction_guide<int>;30 31// CIR: module {{.*}} {32// CIR-NEXT: }33