[backend] Fix issue where the attribute of a procedure definition could be overwritten with the attribute of a declaration
Reviewed By: sblackshear Differential Revision: D3856374 fbshipit-source-id: a8a0a52master
parent
8589dc4868
commit
ec67521c6f
@ -0,0 +1,12 @@
|
||||
/*
|
||||
* Copyright (c) 2016 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
#include "lib.h"
|
||||
|
||||
void setIntValue(int* x, int val) { *x = val; }
|
@ -0,0 +1,10 @@
|
||||
/*
|
||||
* Copyright (c) 2016 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
void setIntValue(int* x, int val);
|
@ -0,0 +1,16 @@
|
||||
/*
|
||||
* Copyright (c) 2016 - present Facebook, Inc.
|
||||
* All rights reserved.
|
||||
*
|
||||
* This source code is licensed under the BSD style license found in the
|
||||
* LICENSE file in the root directory of this source tree. An additional grant
|
||||
* of patent rights can be found in the PATENTS file in the same directory.
|
||||
*/
|
||||
|
||||
#include "lib.h"
|
||||
|
||||
int testSetIntValue() {
|
||||
int x;
|
||||
setIntValue(&x, 0);
|
||||
return 1 / x; // div0
|
||||
}
|
Loading…
Reference in new issue