1 | // Regression test with an empty (length = 0) custom section. |
---|---|
2 | |
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 |
6 | |
7 | #include <stdio.h> |
8 | |
9 | int main() { |
10 | printf(format: "Hello, world!\n"); |
11 | // CHECK: Hello, world! |
12 | } |
13 |