9 lines · cpp
1// RUN: %clang_cc1 -x c++ -fsyntax-only -verify %s2 3struct fam_struct {4 int x;5 char count;6 int array[] __attribute__((counted_by(count))); // expected-warning {{'counted_by' attribute ignored}}7};8 9 1// RUN: %clang_cc1 -x c++ -fsyntax-only -verify %s2 3struct fam_struct {4 int x;5 char count;6 int array[] __attribute__((counted_by(count))); // expected-warning {{'counted_by' attribute ignored}}7};8 9