We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5fc1b74 commit ec620bfCopy full SHA for ec620bf
clang/test/CIR/CodeGen/statement-exprs.c
@@ -6,7 +6,7 @@
6
// RUN: FileCheck --input-file=%t.ll %s --check-prefix=OGCG
7
8
int f19(void) {
9
- return ({ 3;;4;; });
+ return ({ 3;;4; });
10
}
11
12
// CIR: cir.func dso_local @f19() -> !s32i
@@ -42,6 +42,16 @@ int f19(void) {
42
// OGCG: %[[TMP_VAL:.+]] = load i32, ptr %[[TMP]]
43
// OGCG: ret i32 %[[TMP_VAL]]
44
45
+// PR166036: The trailing NullStmt should result in a void.
46
+void f20(void) {
47
+ return ({ 3;;4;; });
48
+}
49
+
50
+// CIR-LABEL: cir.func dso_local @f20() {{[^-]*}}
51
+// CIR: cir.return {{[^%]*}}
52
53
+// LLVM-LABEL: define{{.*}} void @f20
54
+// LLVM: ret void
55
56
int nested(void) {
57
({123;});
0 commit comments