Skip to content

Commit c2dba02

Browse files
Update clang/test/Sema/attr-cfi-salt.c
Co-authored-by: Aaron Ballman <[email protected]>
1 parent abe3bde commit c2dba02

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

clang/test/Sema/attr-cfi-salt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@
33

44
#define __cfi_salt(S) __attribute__((cfi_salt(S)))
55

6-
int bad1() __cfi_salt(); // expected-error{{'cfi_salt' attribute takes one argument}}
7-
int bad2() __cfi_salt(42); // expected-error{{expected string literal as argument of 'cfi_salt' attribute}}
8-
int bad3() __attribute__((cfi_salt("a", "b", "c"))); // expected-error{{'cfi_salt' attribute takes one argument}}
6+
int bad1(void) __cfi_salt(); // expected-error{{'cfi_salt' attribute takes one argument}}
7+
int bad2(void) __cfi_salt(42); // expected-error{{expected string literal as argument of 'cfi_salt' attribute}}
8+
int bad3(void) __attribute__((cfi_salt("a", "b", "c"))); // expected-error{{'cfi_salt' attribute takes one argument}}
99

1010

1111
int foo(int a, int b) __cfi_salt("pepper"); // ok

0 commit comments

Comments
 (0)