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