Fix: Null pointer dereference in ldlex.l
[binutils-gdb.git] / gdb / testsuite / gdb.base / langs0.c
blob41e5d38c7a2b892d8d40c670b5663c83cfef2404
1 /* This file is actually in C, it is not supposed to simulate something
2 translated from another language or anything like that. */
3 extern int fsub_();
5 int csub (int x)
7 return x + 1;
10 int
11 langs0__2do ()
13 return fsub_ () + 2;
16 int
17 main ()
19 if (langs0__2do () == 5003)
20 /* Success. */
21 return 0;
22 else
23 return 1;