From 971cf68f266f58f63b0b260b7f3a363d2f111cd6 Mon Sep 17 00:00:00 2001 From: Reid Kleckner Date: Wed, 1 Apr 2015 23:32:03 +0000 Subject: [PATCH] Add test intended for commit in r231317 git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@233866 91177308-0d34-0410-b5e6-96231b3b80d8 --- test/Sema/pragma-section-invalid.c | 7 +++++++ 1 file changed, 7 insertions(+) create mode 100644 test/Sema/pragma-section-invalid.c diff --git a/test/Sema/pragma-section-invalid.c b/test/Sema/pragma-section-invalid.c new file mode 100644 index 0000000000..b9075c4550 --- /dev/null +++ b/test/Sema/pragma-section-invalid.c @@ -0,0 +1,7 @@ +// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s -triple x86_64-apple-darwin + +// 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}} +#pragma data_seg(".my_const") +int a = 1; +#pragma data_seg("__THINGY,thingy") +int b = 1; -- 2.50.1