summaryrefslogtreecommitdiff
path: root/libs/wave/test/testwave/testfiles/t_1_005.cpp
diff options
context:
space:
mode:
authorAnas Nashif <anas.nashif@intel.com>2012-10-30 12:57:26 -0700
committerAnas Nashif <anas.nashif@intel.com>2012-10-30 12:57:26 -0700
commit1a78a62555be32868418fe52f8e330c9d0f95d5a (patch)
treed3765a80e7d3b9640ec2e930743630cd6b9fce2b /libs/wave/test/testwave/testfiles/t_1_005.cpp
downloadboost-1a78a62555be32868418fe52f8e330c9d0f95d5a.tar.gz
boost-1a78a62555be32868418fe52f8e330c9d0f95d5a.tar.bz2
boost-1a78a62555be32868418fe52f8e330c9d0f95d5a.zip
Imported Upstream version 1.49.0upstream/1.49.0
Diffstat (limited to 'libs/wave/test/testwave/testfiles/t_1_005.cpp')
-rw-r--r--libs/wave/test/testwave/testfiles/t_1_005.cpp27
1 files changed, 27 insertions, 0 deletions
diff --git a/libs/wave/test/testwave/testfiles/t_1_005.cpp b/libs/wave/test/testwave/testfiles/t_1_005.cpp
new file mode 100644
index 0000000000..37e6bb913c
--- /dev/null
+++ b/libs/wave/test/testwave/testfiles/t_1_005.cpp
@@ -0,0 +1,27 @@
+/*=============================================================================
+ Boost.Wave: A Standard compliant C++ preprocessor library
+ http://www.boost.org/
+
+ Copyright (c) 2001-2011 Hartmut Kaiser. Distributed under the Boost
+ Software License, Version 1.0. (See accompanying file
+ LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
+=============================================================================*/
+
+// Tests macro expansion order.
+
+#define A() B
+#define B(x) x
+
+//R #line 16 "t_1_005.cpp"
+A()(123) //R 123
+
+//H 10: t_1_005.cpp(12): #define
+//H 08: t_1_005.cpp(12): A()=B
+//H 10: t_1_005.cpp(13): #define
+//H 08: t_1_005.cpp(13): B(x)=x
+//H 00: t_1_005.cpp(16): A(), [t_1_005.cpp(12): A()=B]
+//H 02: B
+//H 03: B
+//H 00: t_1_005.cpp(12): B(123), [t_1_005.cpp(13): B(x)=x]
+//H 02: 123
+//H 03: 123