3 // RUN: %clangxx -g -fno-exceptions -DCRT_SHARED -c %s -fPIC -o %tshared.o
4 // RUN: %clangxx -g -fno-exceptions -c %s -fPIC -o %t.o
5 // RUN: %clangxx -g -shared -o %t.so -nostdlib %crti %crtbegin %tshared.o %libstdcxx -lc -lm %libgcc %crtend %crtn
6 // RUN: %clangxx -g -o %t -fno-pic -no-pie -nostdlib %crt1 %crti %crtbegin %t.o %libstdcxx -lc -lm %libgcc %t.so %crtend %crtn
7 // RUN: %run %t 2>&1 | FileCheck %s
9 // UNSUPPORTED: target={{(arm|aarch64).*}}