xref: /llvm-project/compiler-rt/test/metadata/nocallback.cpp (revision 5265adc73721963d3bf605a7ad5eab6a7e0850b8)
1 // RUN: %clangxx %s -o %t -fexperimental-sanitize-metadata=all && %t | FileCheck %s
2 
3 // Test that the compiler emits weak declarations to the callbacks, which are
4 // not called if they do not exist.
5 
6 #include <stdio.h>
7 
main()8 int main() {
9   printf("main\n");
10   return 0;
11 }
12 
13 // CHECK: main
14