summaryrefslogtreecommitdiff
path: root/compiler-rt/test/metadata/nocallback.cpp
blob: b5ce5f7ac4c9a9853561fef6b4c9b26a463a0d07 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
// RUN: %clangxx %s -o %t -fexperimental-sanitize-metadata=all && %t | FileCheck %s

// Test that the compiler emits weak declarations to the callbacks, which are
// not called if they do not exist.

#include <stdio.h>

int main() {
  printf("main\n");
  return 0;
}

// CHECK: main