[PATCH] D10805: Disabling of "redefine_extname" pragma for C++ code

Alexey Bataev a.bataev at hotmail.com
Thu Jul 16 21:22:11 PDT 2015


This revision was automatically updated to reflect the committed changes.
Closed by commit rL242507: Tests for "Disabling of "redefine_extname" pragma for C++ code" (authored by ABataev).

Changed prior to commit:
  http://reviews.llvm.org/D10805?vs=29917&id=29975#toc

Repository:
  rL LLVM

http://reviews.llvm.org/D10805

Files:
  cfe/trunk/test/Sema/redefine_extname.c
  cfe/trunk/test/SemaCXX/redefine_extname.cpp

Index: cfe/trunk/test/Sema/redefine_extname.c
===================================================================
--- cfe/trunk/test/Sema/redefine_extname.c
+++ cfe/trunk/test/Sema/redefine_extname.c
@@ -0,0 +1,6 @@
+// RUN: %clang_cc1 -triple=x86_64-unknown-linux -Wpragmas -verify %s
+
+// Check that pragma redefine_extname applies to external declarations only.
+#pragma redefine_extname foo_static bar_static
+static int foo_static() { return 1; } // expected-warning {{#pragma redefine_extname is applicable to external C declarations only; not applied to function 'foo_static'}}
+


-------------- next part --------------
A non-text attachment was scrubbed...
Name: D10805.29975.patch
Type: text/x-patch
Size: 588 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/cfe-commits/attachments/20150717/7f95a696/attachment.bin>


More information about the cfe-commits mailing list