[OpenACC] Enable 'attach' clause for combined constructs
[llvm-project.git] / clang / test / Sema / pragma-clang-section-macho.c
blob9b358a7371562f693c133d62d16396fd977821a3
1 // RUN: %clang_cc1 -fsyntax-only -verify %s -triple arm64-apple-ios
3 #pragma clang section bss = "" data = "" rodata = "" text = ""
4 #pragma clang section bss = "" data = "" rodata = "" text = "__TEXT,__text"
5 #pragma clang section bss = "" data = "" rodata = "" text = "badname" // expected-error {{argument to #pragma section is not valid for this target: mach-o section specifier requires a segment and section separated by a comma}}
6 #pragma clang section bss = "" data = "" rodata = "" text = "__TEXT,__namethatiswaytoolong" // expected-error {{argument to #pragma section is not valid for this target: mach-o section specifier requires a section whose length is between 1 and 16 characters}}
7 #pragma clang section
9 int a;