mirror of
https://github.com/kmc7468/cs420.git
synced 2025-12-16 07:28:52 +00:00
Reorganize tests
This commit is contained in:
15
examples/c/foo4.c
Normal file
15
examples/c/foo4.c
Normal file
@@ -0,0 +1,15 @@
|
||||
int foo(int i, int j, int k) {
|
||||
return i + j + k;
|
||||
}
|
||||
|
||||
int (* foo2())(int, int, int){
|
||||
return foo;
|
||||
}
|
||||
|
||||
int (* (* foo3())())(int, int, int){
|
||||
return foo2;
|
||||
}
|
||||
|
||||
int main() {
|
||||
return foo3()()(2, 2, 2) == 6;
|
||||
}
|
||||
Reference in New Issue
Block a user