aboutsummaryrefslogtreecommitdiff
path: root/gcc/testsuite/gcc.dg/fail_always_inline2.c
diff options
context:
space:
mode:
authorChristian Bruel <christian.bruel@st.com>2011-06-21 08:48:45 +0200
committerChristian Bruel <chrbr@gcc.gnu.org>2011-06-21 08:48:45 +0200
commit2ad97a1e8d96a09e794e3e3a80bdc16fb4847cb7 (patch)
tree016a50b9ad2526d765bdee0cadf32f89e8978a90 /gcc/testsuite/gcc.dg/fail_always_inline2.c
parent4b583c4361025855c6da28b5366f81b4220b873e (diff)
downloadgcc-2ad97a1e8d96a09e794e3e3a80bdc16fb4847cb7.zip
gcc-2ad97a1e8d96a09e794e3e3a80bdc16fb4847cb7.tar.gz
gcc-2ad97a1e8d96a09e794e3e3a80bdc16fb4847cb7.tar.bz2
PR middle-end/49139 fix always_inline diagnostics
From-SVN: r175242
Diffstat (limited to 'gcc/testsuite/gcc.dg/fail_always_inline2.c')
-rw-r--r--gcc/testsuite/gcc.dg/fail_always_inline2.c19
1 files changed, 19 insertions, 0 deletions
diff --git a/gcc/testsuite/gcc.dg/fail_always_inline2.c b/gcc/testsuite/gcc.dg/fail_always_inline2.c
new file mode 100644
index 0000000..863597f
--- /dev/null
+++ b/gcc/testsuite/gcc.dg/fail_always_inline2.c
@@ -0,0 +1,19 @@
+extern char *__realpath_alias (__const char *__restrict __name, char
+*__restrict __resolved) __asm__ ("" "realpath") __attribute__
+((__nothrow__)) __attribute__ ((__warn_unused_result__));
+
+extern __inline __attribute__ ((__always_inline__)) __attribute__
+((__artificial__)) __attribute__ ((__warn_unused_result__)) char *
+__attribute__ ((__nothrow__)) realpath (__const char *__restrict __name,
+char *__restrict __resolved)
+{
+ return __realpath_alias (__name, __resolved);
+}
+
+char *
+realpath(path, resolved)
+ const char *path;
+ char *resolved;
+{
+ return (((void *)0));
+}