diff --git a/clang/test/Sema/builtin-stackaddress.c b/clang/test/Sema/builtin-stackaddress.c index a828168f3d80..c030ab364fe9 100644 --- a/clang/test/Sema/builtin-stackaddress.c +++ b/clang/test/Sema/builtin-stackaddress.c @@ -7,10 +7,10 @@ void b(unsigned x) { return __builtin_return_address(x); // expected-error{{the level argument for a stack address builtin must be constant}} } -void* a(unsigned x) { +void* c(unsigned x) { return __builtin_frame_address(0); } -void b(unsigned x) { +void d(unsigned x) { return __builtin_frame_address(x); // expected-error{{the level argument for a stack address builtin must be constant}} }