dyld-43.tar.gz
[apple/dyld.git] / unit-tests / test-cases / weak-coalesce-c++ / main.cc
1 #include <stdio.h>
2 #include <stdlib.h> // exit(), EXIT_SUCCESS
3
4 #include "test.h" // PASS(), FAIL(), XPASS(), XFAIL()
5
6 extern void set_x_1(int);
7 extern void set_x_2(int);
8 extern int get_x_1(void);
9 extern int get_x_2(void);
10
11 int main()
12 {
13 set_x_1 (17);
14 set_x_2 (76);
15
16 if (get_x_1() == 76 && get_x_2() == 76)
17 PASS("weak-coalesce=c++");
18 else
19 FAIL("weak-coalesce=c++");
20 }