blob: 25674cf25d92c3abe132ebbc8f2a610c0d36b75d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for more information.
#include "stdio.h"
extern "C" int Add(int a, int b);
extern "C" int Subtract(int a, int b);
extern "C" bool Not(bool b);
int main()
{
if (Add(2, 3) != 5)
return 1;
if (Subtract(3, 1) != 2)
return 1;
if (!Not(false))
return 1;
return 100;
}
|