Emit warnings if we are returning a reference to a local temporary.
[clang.git] / test / Driver / unknown-gcc-arch.c
blob7018bf839d023fdb54e75a57a61c37c6b48a9811
1 // RUN: %clang -ccc-host-triple x86_64-unknown-unknown -c -x assembler %s -### 2> %t.log
2 // RUN: grep '.*gcc.*"-m64"' %t.log
3 // RUN: %clang -ccc-host-triple x86_64-unknown-unknown -c -x assembler %s -### -m32 2> %t.log
4 // RUN: grep '.*gcc.*"-m32"' %t.log
5 // RUN: %clang -ccc-host-triple i386-unknown-unknown -c -x assembler %s -### 2> %t.log
6 // RUN: grep '.*gcc.*"-m32"' %t.log
7 // RUN: %clang -ccc-host-triple i386-unknown-unknown -c -x assembler %s -### -m64 2> %t.log
8 // RUN: grep '.*gcc.*"-m64"' %t.log