Allow resolving headers from a PCH even after headers+PCH were moved to another path.
[clang.git] / test / Sema / heinous-extensions-on.c
blob176f4727ef2b169edbfd6f3ba9f0a1a0ac1939da
1 // RUN: %clang_cc1 %s -verify -fheinous-gnu-extensions
3 void foo() {
4 int a;
5 // PR3788
6 asm("nop" : : "m"((int)(a))); // expected-warning {{cast in a inline asm context requiring an l-value}}
7 // PR3794
8 asm("nop" : "=r"((unsigned)a)); // expected-warning {{cast in a inline asm context requiring an l-value}}