================ @@ -33,23 +33,22 @@ Two goo __attribute__((init_priority(2,3))) ( 5, 6 ); // expected-error {{'init_ Two coo[2] __attribute__((init_priority(100))); #if !defined(SYSTEM) - // expected-error@-2 {{'init_priority' attribute requires integer constant between 101 and 65535 inclusive}} + // expected-error@-2 {{requested 'init_priority' 100 is reserved for internal use}} // unknown-warning@-3 {{unknown attribute 'init_priority' ignored}} #endif -Two boo[2] __attribute__((init_priority(65536))); -#if !defined(SYSTEM) - // expected-error@-2 {{'init_priority' attribute requires integer constant between 101 and 65535 inclusive}} - // unknown-warning@-3 {{unknown attribute 'init_priority' ignored}} -#endif +Two zoo[2] __attribute__((init_priority(-1))); // expected-error {{'init_priority' attribute requires integer constant between 0 and 65535 inclusive}} +// unknown-warning@-1 {{unknown attribute 'init_priority' ignored}} + +Two boo[2] __attribute__((init_priority(65536))); // expected-error {{'init_priority' attribute requires integer constant between 0 and 65535 inclusive}} ---------------- shafik wrote:
Can we also test `65535` which should be valid, just for completeness sake. https://github.com/llvm/llvm-project/pull/121577 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits