annotate clang/test/CodeGen/sret.c @ 236:c4bab56944e8 llvm-original

LLVM 16
author kono
date Wed, 09 Nov 2022 17:45:10 +0900
parents 1d019706d866
children 1f2b6ac9f198
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
1 // RUN: %clang_cc1 %s -Wno-strict-prototypes -emit-llvm -o - | grep sret | grep -v 'sret.c' | count 4
150
anatofuz
parents:
diff changeset
2
anatofuz
parents:
diff changeset
3 struct abc {
anatofuz
parents:
diff changeset
4 long a;
anatofuz
parents:
diff changeset
5 long b;
anatofuz
parents:
diff changeset
6 long c;
anatofuz
parents:
diff changeset
7 long d;
anatofuz
parents:
diff changeset
8 long e;
anatofuz
parents:
diff changeset
9 };
anatofuz
parents:
diff changeset
10
anatofuz
parents:
diff changeset
11 struct abc foo1(void);
anatofuz
parents:
diff changeset
12 struct abc foo2();
anatofuz
parents:
diff changeset
13
236
c4bab56944e8 LLVM 16
kono
parents: 150
diff changeset
14 void bar(void) {
150
anatofuz
parents:
diff changeset
15 struct abc dummy1 = foo1();
anatofuz
parents:
diff changeset
16 struct abc dummy2 = foo2();
anatofuz
parents:
diff changeset
17 }