source: tests/poly-member.cfa@ 445b281

Last change on this file since 445b281 was 10b5970, checked in by Michael Brooks <mlbrooks@…>, 8 months ago

Fix many test-suite- and libcfa-caused unused variable warnings.

In scope are easy fixes among tests whose sole warnings were unused variable. Reduces the wflags lax list by 40%.

  • Property mode set to 100644
File size: 323 bytes
Line 
1forall( T & )
2struct Proxy {};
3
4struct MonoCell {
5 Proxy(int) data;
6};
7
8forall( T & )
9struct PolyCell {
10 Proxy(T) data;
11};
12
13int main() {
14 {
15 MonoCell thing1;
16 Proxy(int) & thing2 = thing1.data;
17 (void) thing2;
18 }
19
20 {
21 PolyCell(int) thing1;
22 Proxy(int) & thing2 = thing1.data;
23 (void) thing2;
24 }
25
26 printf("Done\n");
27}
Note: See TracBrowser for help on using the repository browser.