// RUN: %clang_cc1 %s -ast-print -verify > %t.c
// RUN: FileCheck %s --input-file %t.c
//
// RUN: echo >> %t.c "// expected""-warning@* {{use of GNU old-style field designator extension}}"
// RUN: echo >> %t.c "// expected""-warning@* {{'EnumWithAttributes' is deprecated}}"
// RUN: echo >> %t.c "// expected""-note@* {{'EnumWithAttributes' has been explicitly marked deprecated here}}"
// RUN: echo >> %t.c "// expected""-warning@* {{'EnumWithAttributes2' is deprecated}}"
// RUN: echo >> %t.c "// expected""-note@* {{'EnumWithAttributes2' has been explicitly marked deprecated here}}"
// RUN: echo >> %t.c "// expected""-warning@* {{'EnumWithAttributes3' is deprecated}}"
// RUN: echo >> %t.c "// expected""-note@* {{'EnumWithAttributes3' has been explicitly marked deprecated here}}"
// RUN: %clang_cc1 -fsyntax-only %t.c -verify
typedef void ;
func_typedef xxx;
typedef void ;
func_t a;
;
// This used to crash clang.
;
int
int
int
int
int
// CHECK: typedef struct {
typedef struct T ;
// CHECK: struct __attribute__((visibility("default"))) S;
;
;
// CHECK: struct pair_t p = {a: 3, .b = 4};
struct pair_t p = ; // expected-warning {{use of GNU old-style field designator extension}}
void
// CHECK-LABEL: enum __attribute__((deprecated(""))) EnumWithAttributes {
*EnumWithAttributesPtr; // expected-note {{'EnumWithAttributes' has been explicitly marked deprecated here}}
// CHECK-LABEL: enum __attribute__((deprecated(""))) EnumWithAttributes2 *EnumWithAttributes2Ptr;
// expected-warning@+2 {{'EnumWithAttributes2' is deprecated}}
// expected-note@+1 {{'EnumWithAttributes2' has been explicitly marked deprecated here}}
;
// CHECK-LABEL: EnumWithAttributes3Fn
void