blob: c81c37b1c89eb8285256c21dc9ec9cf96bffaed9 [file] [edit]
// RUN: not %clang_cc1 -S -stack-protector 1 -mstack-protector-guard-record -triple=s390x-ibm-linux < %s -o - 2>&1 | FileCheck -check-prefix=CHECK-OPTS %s
extern char *strcpy (char * D, const char * S);
int main(int argc, char *argv[])
{
char Buffer[8] = {0};
strcpy(Buffer, argv[1]);
return 0;
}
// CHECK-OPTS: error: option '-mstack-protector-guard-record' cannot be specified without '-mstack-protector-guard=global'