mirror of
https://github.com/encounter/object-testfiles.git
synced 2026-07-10 12:18:40 -07:00
22 lines
215 B
C++
22 lines
215 B
C++
typedef int (*f)(int);
|
|
|
|
inline int foo1(int x) {
|
|
return x * x;
|
|
}
|
|
|
|
inline int foo2(int x) {
|
|
return x + x;
|
|
}
|
|
|
|
f bar1(void) {
|
|
return foo1;
|
|
}
|
|
|
|
f bar2(void) {
|
|
return foo2;
|
|
}
|
|
|
|
int main() {
|
|
return 0;
|
|
}
|