~hjd/ubuntu/wily/gyp/debian-merged

« back to all changes in this revision

Viewing changes to test/win/linker-flags/inline_test_main.cc

  • Committer: Hans Joachim Desserud
  • Date: 2015-10-31 12:46:59 UTC
  • mfrom: (6.2.6 sid)
  • Revision ID: hans_joachim_desserud-20151031124659-lzxekr6woskh4k0b
Merge latest Debian version

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) 2013 Google Inc. All rights reserved.
 
2
// Use of this source code is governed by a BSD-style license that can be
 
3
// found in the LICENSE file.
 
4
 
 
5
#include "inline_test.h"
 
6
 
 
7
#include <intrin.h>
 
8
#include <stdio.h>
 
9
 
 
10
#pragma intrinsic(_ReturnAddress)
 
11
 
 
12
int main() {
 
13
  if (IsFunctionInlined(_ReturnAddress()))
 
14
    puts("==== inlined ====\n");
 
15
}