Reviewed By: jvillard Differential Revision: D15940525 fbshipit-source-id: 1b4b5d9edmaster
parent
b14580d88b
commit
571ae7774a
@ -0,0 +1,19 @@
|
||||
/*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
#import <Foundation/Foundation.h>
|
||||
#include "One.h"
|
||||
|
||||
@interface BadRegexInPointNameForPerfLogging : NSObject
|
||||
void testRegexSafe();
|
||||
@end
|
||||
|
||||
@implementation BadRegexInPointNameForPerfLogging
|
||||
void testRegexSafe() {
|
||||
std::shared_ptr<One> one = std::make_shared<One>();
|
||||
one->test(1, "Sample");
|
||||
}
|
||||
@end
|
@ -0,0 +1,13 @@
|
||||
/*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
#include "One.h"
|
||||
#include <string>
|
||||
void One::test(int markerId, const std::string& name) {
|
||||
// do nothing
|
||||
}
|
||||
|
||||
int main() { return 0; }
|
@ -0,0 +1,11 @@
|
||||
/*
|
||||
* Copyright (c) Facebook, Inc. and its affiliates.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
#include <string>
|
||||
class One {
|
||||
public:
|
||||
void test(int markerId, const std::string& name);
|
||||
};
|
Loading…
Reference in new issue