]> git.saurik.com Git - apple/ld64.git/blobdiff - unit-tests/test-cases/dwarf-debug-notes/other.cxx
ld64-84.1.2.tar.gz
[apple/ld64.git] / unit-tests / test-cases / dwarf-debug-notes / other.cxx
old mode 100644 (file)
new mode 100755 (executable)
index dc4feb4..b1b0e77
@@ -3,16 +3,25 @@
 
 int uninit;
 int init = 1;
+static int custom _asm(".my_non_standard_name") = 1;
 static int suninit;
 static int sinit=0;
+static int scustominit _asm(".my_non_standard_name_static") = 1;
 
 int bar(int x)
 {
        static int bar_uninit;
        static int bar_init=3;
        bar_uninit = x;
+       scustominit = x;
+       custom = x;
        return 20 + suninit + sinit +
                bar_init + bar_uninit + foo(x);
 }
 
+extern void disappear() _asm("lbegone");
+void disappear() {}
+
+extern void foo() _asm(".my_non_standard_function_name");
+void foo() { disappear(); }