]> granicus.if.org Git - clang/commitdiff
Fix testcase to add expected note.
authorBill Wendling <isanbard@gmail.com>
Wed, 27 Mar 2013 06:45:37 +0000 (06:45 +0000)
committerBill Wendling <isanbard@gmail.com>
Wed, 27 Mar 2013 06:45:37 +0000 (06:45 +0000)
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@178122 91177308-0d34-0410-b5e6-96231b3b80d8

test/Sema/asm.c

index b901e378cf3f6ad746a992f6569b427b35e972b5..50c28188aa2e319f62279ffff734e129d8db05ed 100644 (file)
@@ -125,7 +125,7 @@ void test13(void) {
 }
 
 // <rdar://problem/12700799>
-struct S;
+struct S;  // expected-note {{forward declaration of 'struct S'}}
 void test14(struct S *s) {
   __asm("": : "a"(*s)); // expected-error {{dereference of pointer to incomplete type 'struct S'}}
   __asm("": "=a" (*s) :); // expected-error {{dereference of pointer to incomplete type 'struct S'}}