r233866 - Add test intended for commit in r231317

Reid Kleckner reid at kleckner.net
Wed Apr 1 16:32:03 PDT 2015


Author: rnk
Date: Wed Apr  1 18:32:03 2015
New Revision: 233866

URL: http://llvm.org/viewvc/llvm-project?rev=233866&view=rev
Log:
Add test intended for commit in r231317

Added:
    cfe/trunk/test/Sema/pragma-section-invalid.c

Added: cfe/trunk/test/Sema/pragma-section-invalid.c
URL: http://llvm.org/viewvc/llvm-project/cfe/trunk/test/Sema/pragma-section-invalid.c?rev=233866&view=auto
==============================================================================
--- cfe/trunk/test/Sema/pragma-section-invalid.c (added)
+++ cfe/trunk/test/Sema/pragma-section-invalid.c Wed Apr  1 18:32:03 2015
@@ -0,0 +1,7 @@
+// RUN: %clang_cc1 -fsyntax-only -verify -fms-extensions %s -triple x86_64-apple-darwin
+
+// expected-error at +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;





More information about the cfe-commits mailing list