repo.or.cz
/
llvm-project.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
[RISCV] Simplify usage of SplatPat_simm5_plus1. NFC (#125340)
[llvm-project.git]
/
clang
/
test
/
SemaCXX
/
cxx23-assume-print.cpp
blob
37db015fcc39095a58500c43e586d1efb02fc447
1
// RUN: %clang_cc1 -std=c++23 -ast-print %s | FileCheck %s
2
3
// CHECK: void f(int x, int y) {
4
void
f
(
int
x
,
int
y
) {
5
// CHECK-NEXT: {{\[}}[assume(true)]]
6
[[
assume
(
true
)]];
7
8
// CHECK-NEXT: {{\[}}[assume(2 + 4)]]
9
[[
assume
(
2
+
4
)]];
10
11
// CHECK-NEXT: {{\[}}[assume(x == y)]]
12
[[
assume
(
x
==
y
)]];
13
}