about summary refs log tree commit diff
path: root/debug/tst-ssp-1.c
diff options
context:
space:
mode:
Diffstat (limited to 'debug/tst-ssp-1.c')
-rw-r--r--debug/tst-ssp-1.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/debug/tst-ssp-1.c b/debug/tst-ssp-1.c
index 27f10edc56..671e9a5007 100644
--- a/debug/tst-ssp-1.c
+++ b/debug/tst-ssp-1.c
@@ -22,6 +22,10 @@
 
 static void
 __attribute__ ((noinline)) __attribute_noclone__
+#ifdef __clang__
+/* Avoid clang optimize it away.  */
+__attribute__ ((optnone))
+#endif
 test (char *foo)
 {
   int i;