Skip to content

Commit 971cf68

Browse files
committed
Add test intended for commit in r231317
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233866 91177308-0d34-0410-b5e6-96231b3b80d8
1 parent d841fb4 commit 971cf68

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

test/Sema/pragma-section-invalid.c

+7
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s -triple x86_64-apple-darwin
2+
3+
// expected-error@+1 {{argument to 'section' attribute is not valid for this target: mach-o section specifier requires a segment and section separated by a comma}}
4+
#pragma data_seg(".my_const")
5+
int a = 1;
6+
#pragma data_seg("__THINGY,thingy")
7+
int b = 1;

0 commit comments

Comments
 (0)