summaryrefslogtreecommitdiffstats
path: root/Tests/ConvLibrary/bartest.cxx
blob: ab9577304d57dda25fa9a3529f4948af98b5edef (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
extern "C" int bar();
int foo();
int car();

#include <stdio.h>
int main()
{
  if(foo() == 10)
    {
    printf("foo is 10!\n");
    }
  else
    {
    printf("foo is not 10 error!\n");
    return -1;
    }
  if(bar() == 20)
    {
    printf("bar is 20!\n");
    }
  else
    {
    printf("bar is not 20 error!\n");
    return -1;
    }
  if(car() == 30)
    {
    printf("car is 30!\n");
    }
  else
    {
    printf("car is not 30 error!\n");
    return -1;
    }
  printf("Test past\n");
  return 0;
}