[clang] 4f04f7d - [clang][test][NFC] clang-format attr-ifunc.c test

Itay Bookstein via cfe-commits cfe-commits at lists.llvm.org
Tue Nov 9 13:51:43 PST 2021


Author: Itay Bookstein
Date: 2021-11-09T23:51:22+02:00
New Revision: 4f04f7d816f3cb5c83c87fdf0468f8090ea9e44d

URL: https://github.com/llvm/llvm-project/commit/4f04f7d816f3cb5c83c87fdf0468f8090ea9e44d
DIFF: https://github.com/llvm/llvm-project/commit/4f04f7d816f3cb5c83c87fdf0468f8090ea9e44d.diff

LOG: [clang][test][NFC] clang-format attr-ifunc.c test

Signed-off-by: Itay Bookstein <ibookstein at gmail.com>

Reviewed By: erichkeane

Differential Revision: https://reviews.llvm.org/D113504

Added: 
    

Modified: 
    clang/test/Sema/attr-ifunc.c

Removed: 
    


################################################################################
diff  --git a/clang/test/Sema/attr-ifunc.c b/clang/test/Sema/attr-ifunc.c
index 907b61c4451e..6fac48a5afe2 100644
--- a/clang/test/Sema/attr-ifunc.c
+++ b/clang/test/Sema/attr-ifunc.c
@@ -5,39 +5,39 @@
 #if defined(_WIN32)
 void foo() {}
 void bar() __attribute__((ifunc("foo")));
-//expected-warning at -1 {{unknown attribute 'ifunc' ignored}}
+// expected-warning at -1 {{unknown attribute 'ifunc' ignored}}
 
 #else
 #if defined(CHECK_ALIASES)
-void* f1_ifunc();
+void *f1_ifunc();
 void f1() __attribute__((ifunc("f1_ifunc")));
-//expected-error at -1 {{ifunc must point to a defined function}}
+// expected-error at -1 {{ifunc must point to a defined function}}
 
-void* f2_a() __attribute__((ifunc("f2_b")));
-//expected-error at -1 {{ifunc definition is part of a cycle}}
-void* f2_b() __attribute__((ifunc("f2_a")));
-//expected-error at -1 {{ifunc definition is part of a cycle}}
+void *f2_a() __attribute__((ifunc("f2_b")));
+// expected-error at -1 {{ifunc definition is part of a cycle}}
+void *f2_b() __attribute__((ifunc("f2_a")));
+// expected-error at -1 {{ifunc definition is part of a cycle}}
 
-void* f3_a() __attribute__((ifunc("f3_b")));
-//expected-warning at -1 {{ifunc will always resolve to f3_c even if weak definition of f3_b is overridden}}
-void* f3_b() __attribute__((weak, alias("f3_c")));
-void* f3_c() { return 0; }
+void *f3_a() __attribute__((ifunc("f3_b")));
+// expected-warning at -1 {{ifunc will always resolve to f3_c even if weak definition of f3_b is overridden}}
+void *f3_b() __attribute__((weak, alias("f3_c")));
+void *f3_c() { return 0; }
 
 void f4_ifunc() {}
 void f4() __attribute__((ifunc("f4_ifunc")));
-//expected-error at -1 {{ifunc resolver function must return a pointer}}
+// expected-error at -1 {{ifunc resolver function must return a pointer}}
 
 #else
 void f1a() __asm("f1");
 void f1a() {}
-//expected-note at -1 {{previous definition is here}}
+// expected-note at -1 {{previous definition is here}}
 void f1() __attribute__((ifunc("f1_ifunc")));
-//expected-error at -1 {{definition with same mangled name 'f1' as another definition}}
-void* f1_ifunc() { return 0; }
+// expected-error at -1 {{definition with same mangled name 'f1' as another definition}}
+void *f1_ifunc() { return 0; }
 
-void* f6_ifunc(int i);
+void *f6_ifunc(int i);
 void __attribute__((ifunc("f6_ifunc"))) f6() {}
-//expected-error at -1 {{definition 'f6' cannot also be an ifunc}}
+// expected-error at -1 {{definition 'f6' cannot also be an ifunc}}
 
 #endif
 #endif


        


More information about the cfe-commits mailing list