ADTast-experimental
Last change
on this file since 85e49a6 was
12df6fe,
checked in by JiadaL <j82liang@…>, 2 years ago
|
Fix an enumerator value bug; add basic tests for new features; save the current progress before merge
|
-
Property mode set to
100644
|
File size:
255 bytes
|
Line | |
---|
1 | #include <stdio.h> |
---|
2 | void my_int_func(int x) |
---|
3 | { |
---|
4 | printf( "%d\n", x ); |
---|
5 | } |
---|
6 | |
---|
7 | int main() |
---|
8 | { |
---|
9 | void (*foo)(int); |
---|
10 | enum( void (*)(int) ) { FF = &my_int_func }; |
---|
11 | /* the ampersand is actually optional */ |
---|
12 | foo = &my_int_func; |
---|
13 | foo(5); |
---|
14 | return 0; |
---|
15 | } |
---|
Note: See
TracBrowser
for help on using the repository browser.