aboutsummaryrefslogtreecommitdiff
path: root/final/ABI-Testsuite/test/s3_3_5/s3c2.xpp
diff options
context:
space:
mode:
Diffstat (limited to 'final/ABI-Testsuite/test/s3_3_5/s3c2.xpp')
-rwxr-xr-xfinal/ABI-Testsuite/test/s3_3_5/s3c2.xpp19
1 files changed, 19 insertions, 0 deletions
diff --git a/final/ABI-Testsuite/test/s3_3_5/s3c2.xpp b/final/ABI-Testsuite/test/s3_3_5/s3c2.xpp
new file mode 100755
index 00000000..c562bbec
--- /dev/null
+++ b/final/ABI-Testsuite/test/s3_3_5/s3c2.xpp
@@ -0,0 +1,19 @@
+// Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions.
+// See https://llvm.org/LICENSE.txt for license information.
+// SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
+// RUN: cxx_compiler %s -c -o %t.o
+// RUN: bindump %t.o | tee %t.tmp | FileCheck %s
+
+#include <stdio.h>
+#include <stdlib.h>
+
+// Check that atexit is not defined in the module (it should be provided by the library)
+
+// CHECK: {{(U|SHN_UNDEF) atexit}}
+
+void fn01() { printf("%s()\n", __FUNCTION__); }
+
+int main(int argc, char *argv[]) {
+ atexit(fn01);
+ return 0;
+}