Changeset 20be782 for tests/collections
- Timestamp:
- Aug 8, 2022, 1:00:27 PM (2 years ago)
- Branches:
- ADT, ast-experimental, master, pthread-emulation
- Children:
- 428adbc
- Parents:
- a7d696f
- git-author:
- z277zhu <z277zhu@…> (08/07/22 22:19:45)
- git-committer:
- z277zhu <z277zhu@…> (08/08/22 13:00:27)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
tests/collections/stack.cfa
ra7d696f r20be782 3 3 #include <bits/stack.hfa> 4 4 5 struct Fred {6 inline Colable; // Plan 9 inheritance7 int i;8 };9 10 Stack(Fred) fred;11 12 5 int main() { 13 6 // Fred test 14 7 15 8 struct Fred { 9 inline Colable; // Plan 9 inheritance 10 int i; 11 }; 16 12 void ?{}( Fred & fred ) { abort(); } 17 13 void ?{}( Fred & fred, int p ) with( fred ) { … … 22 18 } 23 19 24 20 Stack(Fred) fred; 25 21 StackIter(Fred) inter = { fred }; 26 22 Fred & f;
Note: See TracChangeset
for help on using the changeset viewer.