1 // RUN: %clang_cc1 %s -fsyntax-only -pedantic -verify
7 // PR6451 - C++ Jump checking
13 goto later
; // expected-error {{cannot jump}}
14 X x
; // expected-note {{jump bypasses variable initialization}}
21 void a() { goto out
; A x
; out
: return; }
25 __asm__ ("":"+r" (test3
)); // expected-error{{invalid lvalue in asm output}}
28 void test4(); // expected-note{{possible target for call}}
29 void test4(int) { // expected-note{{possible target for call}}
30 // expected-error@+1{{overloaded function could not be resolved}}
31 __asm__ ("":"+r" (test4
)); // expected-error{{invalid lvalue in asm output}}
35 __asm__ ("":"+r" (buf
));
39 void test6() { __asm__("" : "=m"(*(MMX_t
*)0)); }
43 return ({ // expected-warning{{use of GNU statement expression extension}}
53 double b
= test7(2.0);
60 int j
= ({i
;}); // expected-error {{invalid use of non-static data member 'i'}}
61 // expected-error@-1 {{cannot initialize a member subobject of type 'int' with an rvalue of type 'void'}}
62 // expected-warning@-2 {{use of GNU statement expression extension}}