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