Run DCE after a LoopFlatten test to reduce spurious output [nfc]
[llvm-project.git] / compiler-rt / test / asan / TestCases / Darwin / empty-section.cpp
blob5b006b545488cfa91e84aa1b67a6bf66704e6ef9
1 // Regression test with an empty (length = 0) custom section.
3 // RUN: %clangxx_asan -g -O0 %s -c -o %t.o
4 // RUN: %clangxx_asan -g -O0 %t.o -o %t -sectcreate mysegment mysection /dev/null
5 // RUN: %run %t 2>&1 | FileCheck %s
7 #include <stdio.h>
9 int main() {
10 printf("Hello, world!\n");
11 // CHECK: Hello, world!