]> git.saurik.com Git - apple/ld64.git/blame_incremental - unit-tests/test-cases/dwarf-debug-notes/other.cxx
ld64-123.2.1.tar.gz
[apple/ld64.git] / unit-tests / test-cases / dwarf-debug-notes / other.cxx
... / ...
CommitLineData
1
2#include "header.h"
3
4int uninit;
5int init = 1;
6static int custom _asm(".my_non_standard_name") = 1;
7static int suninit;
8static int sinit=0;
9static int scustominit _asm(".my_non_standard_name_static") = 1;
10
11int bar(int x)
12{
13 static int bar_uninit;
14 static int bar_init=3;
15 bar_uninit = x;
16 scustominit = x;
17 custom = x;
18 return 20 + suninit + sinit +
19 bar_init + bar_uninit + foo(x);
20}
21
22extern void disappear() _asm("lbegone");
23void disappear() {}
24
25extern void foo() _asm(".my_non_standard_function_name");
26void foo() { disappear(); }
27