mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-27 04:52:05 +08:00
7da5cf78fb
Hoist the Blackfin implementation up to the common one.
19 lines
245 B
C
19 lines
245 B
C
/* Basic getpid tests.
|
|
# mach: bfin
|
|
# cc: -msim
|
|
*/
|
|
|
|
#include <stdio.h>
|
|
#include <unistd.h>
|
|
|
|
int main(int argc, char *argv[])
|
|
{
|
|
pid_t pid = getpid();
|
|
if (pid < 0) {
|
|
perror("getpid failed");
|
|
return 1;
|
|
}
|
|
puts("pass");
|
|
return 0;
|
|
}
|