Debian Codegraph @

clang/test/CIR/CodeGen/empty.cpp

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