ADT
ast-experimental
|
Last change
on this file since afdb74b was 56f519b, checked in by Andrew Beach <ajbeach@…>, 4 years ago |
|
Clean-up of the last pass. Added a test for the constructor mutex argument test.
|
-
Property mode
set to
100644
|
|
File size:
212 bytes
|
| Rev | Line | |
|---|
| [56f519b] | 1 | #include <monitor.hfa>
|
|---|
| 2 |
|
|---|
| 3 | monitor Empty {};
|
|---|
| 4 |
|
|---|
| 5 | struct Test {};
|
|---|
| 6 |
|
|---|
| 7 | // Should work:
|
|---|
| 8 | void ?{}(Test & this, Empty & mutex mon) {}
|
|---|
| 9 |
|
|---|
| 10 | // Should not work:
|
|---|
| 11 | void ?{}(Empty & mutex this) {}
|
|---|
| 12 |
|
|---|
| 13 | int main(void) {
|
|---|
| 14 | printf("done\n");
|
|---|
| 15 | }
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.