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'}} +
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'}} +
_______________________________________________ cfe-commits mailing list cfe-commits@cs.uiuc.edu http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits