File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change 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
1111int foo (int a , int b ) __cfi_salt ("pepper "); // ok
You can’t perform that action at this time.
0 commit comments